update main.yml #5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Test Nix Build" | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
linux-builds: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
config: | |
- {name: 'nixos',} | |
# - {name: 'work'} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: DeterminateSystems/nix-installer-action@main | |
with: | |
extra_nix_config: | | |
experimental-features = nix-command flakes | |
- uses: DeterminateSystems/magic-nix-cache-action@v8 | |
with: | |
diagnostic-endpoint: "" | |
- name: Build NixOS configuration (${{ matrix.config.name }}) | |
run: | | |
nix build .#nixosConfigurations.${{ matrix.config.name }}.config.system.build.toplevel \ | |
--override-input citrix_workspace "$(nix build .#citrix_workspace --no-link --print-out-paths)" | |
# darwin-builds: | |
# runs-on: macos-14 # Apple Silicon | |
# strategy: | |
# matrix: | |
# config: | |
# - {name: 'Harrys-MacBook-Pro'} | |
# - {name: 'Harrys-MacBook-Air'} | |
# steps: | |
# - uses: actions/checkout@v4 | |
# - uses: cachix/install-nix-action@v25 | |
# with: | |
# extra_nix_config: | | |
# experimental-features = nix-command flakes | |
# extra-platforms = aarch64-darwin x86_64-darwin | |
# - name: Build Darwin configuration (${{ matrix.config.name }}) | |
# run: | | |
# nix build .#darwinConfigurations.${{ matrix.config.name }}.system |