Skip to content

build

build #452

Workflow file for this run

name: build
on:
pull_request:
push:
workflow_dispatch:
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- name: 'jamie-desktop'
path: 'nixosConfigurations."jamie-desktop".config.system.build.toplevel'
- name: 'rpi'
path: 'nixosConfigurations."rpi".config.system.build.toplevel'
- name: 'jamie-hyperv'
path: 'nixosConfigurations."jamie-hyperv".config.system.build.toplevel'
- name: 'alfred'
path: 'nixosConfigurations."alfred".config.system.build.toplevel'
- name: 'jamie@alfred'
path: 'homeConfigurations."jamie@alfred".activationPackage'
- name: 'jamie@rpi'
path: 'homeConfigurations."jamie@rpi".activationPackage'
- name: 'jamie@generic'
path: 'homeConfigurations."jamie@generic".activationPackage'
steps:
- name: Checkout repository
uses: actions/checkout@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4
- name: Setup QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3
- name: Install nix
uses: DeterminateSystems/nix-installer-action@da36cb69b1c3247ad7a1f931ebfd954a1105ef14 # v14
with:
extra-conf: |
extra-platforms = aarch64-linux i686-linux
- name: Use cache
uses: DeterminateSystems/magic-nix-cache-action@87b14cf437d03d37989d87f0fa5ce4f5dc1a330b # v8
- name: Build ${{ matrix.name }}
run: nix build ".#"${{ matrix.path }}