33 lines
1.1 KiB
YAML
33 lines
1.1 KiB
YAML
name: build-pbp
|
|
on:
|
|
workflow_dispatch: # allows manual triggering
|
|
push:
|
|
branches:
|
|
- master
|
|
- update_flake_lock_action
|
|
|
|
jobs:
|
|
build-pbp:
|
|
if: ${{ always() }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- uses: cachix/install-nix-action@v18
|
|
with:
|
|
extra_nix_config: |
|
|
accept-flake-config = true
|
|
|
|
- run: |
|
|
DEBIAN_FRONTEND=noninteractive
|
|
sudo apt-get update -q -y && sudo apt-get install -q -y qemu-system-aarch64 qemu-efi binfmt-support qemu-user-static
|
|
mkdir -p ~/.config/nix
|
|
sudo bash -c "echo system-features = aarch64-linux arm-linux >> /etc/nix/nix.conf"
|
|
|
|
- uses: cachix/cachix-action@v12
|
|
with:
|
|
name: aciceri-fleet
|
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
|
|
|
- run: nix --print-build-logs --verbose build --allow-import-from-derivation --option system aarch64-linux --option sandbox false --extra-platforms aarch64-linux .#nixosConfigurations.pbp.config.system.build.toplevel
|