switch to cachix for CI #318
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
merge_group: | |
permissions: | |
contents: read | |
jobs: | |
# We probably should replace with a different faster CI soon, | |
# but atleast this gives us confidence for now | |
nix-build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v30 | |
- uses: cachix/cachix-action@v15 | |
with: | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- run: nix run --inputs-from . nixpkgs#nix-fast-build -- -skip-cached --no-nom | |
# all builds combined consume too much disk space... we should soon switch to something else | |
nixos-x86_64: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
machine: [caliban] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v30 | |
- uses: cachix/cachix-action@v15 | |
with: | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- run: nix run --inputs-from . nixpkgs#nix-fast-build -- --skip-cached --no-nom --flake '.#nixosConfigurations."${{ matrix.machine }}.nixos.org".config.system.build.toplevel' | |
nixos-aarch64: | |
runs-on: ubuntu-22.04-arm | |
strategy: | |
matrix: | |
machine: [umbriel] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v30 | |
- uses: cachix/cachix-action@v15 | |
with: | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- run: nix run --inputs-from . nixpkgs#nix-fast-build -- --skip-cached --no-nom --flake '.#nixosConfigurations."${{ matrix.machine }}.nixos.org".config.system.build.toplevel' | |
nix-darwin: | |
runs-on: macos-latest | |
strategy: | |
matrix: | |
machine: [m1, m2-large] | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: cachix/install-nix-action@v30 | |
- uses: cachix/cachix-action@v15 | |
with: | |
authToken: "${{ secrets.CACHIX_AUTH_TOKEN }}" | |
- run: nix run --inputs-from . nixpkgs#nix-fast-build -- --skip-cached --no-nom --flake '.#darwinConfigurations."${{ matrix.machine }}".config.system.build.toplevel' |