host(satori): some testing #519
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: Check and Build configuration | |
on: | |
push: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Replace .cry files with some bollocks | |
run: find . -name "*.cry" -execdir bash -c 'echo some bollocks > {}' \; | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v10 | |
with: | |
extra-conf: | | |
experimental-features = nix-command flakes | |
- name: Setup Nix cache | |
uses: DeterminateSystems/magic-nix-cache-action@v4 | |
- name: Run nix flake check | |
run: nix flake check | |
- name: Check with DeterminateSystems/flake-checker-action | |
uses: DeterminateSystems/flake-checker-action@v5 | |
with: | |
ignore-missing-flake-lock: false | |
build: | |
needs: check | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
host: | |
- koumakan | |
- bocchi | |
- renko | |
steps: | |
- name: Maximize build space | |
uses: easimon/maximize-build-space@master | |
with: | |
overprovision-lvm: 'true' | |
remove-dotnet: 'true' | |
remove-android: 'true' | |
remove-haskell: 'true' | |
remove-codeql: 'true' | |
remove-docker-images: 'true' | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v10 | |
with: | |
extra-conf: | | |
fallback = true # why is this not the default? | |
connect-timeout = 30 | |
netrc-file = /etc/nix/netrc | |
experimental-features = nix-command flakes | |
- name: Build configuration | |
run: nix run github:Mic92/nix-fast-build -- --no-nom --skip-cached --flake .#nixosConfigurations."${{ matrix.host }}".config.system.build.toplevel |