Skip to content

flake.lock: Update #675

flake.lock: Update

flake.lock: Update #675

Workflow file for this run

name: Check
on:
- push
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ssh-key: ${{secrets.SSH_KEY}}
submodules: 'true'
- uses: cachix/install-nix-action@v27
- uses: DeterminateSystems/magic-nix-cache-action@v6
- uses: DeterminateSystems/flake-checker-action@v7
- run: nix fmt -- --check .
eval-check:
name: Eval
runs-on: ubuntu-latest
needs: check
strategy:
fail-fast: false
matrix:
nix-version:
- 2.18.1 # 23.11
- 2.18.2 # unstable
- latest
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
FLAKE: 'git+ssh://[email protected]/${{ github.repository }}.git?ref=${{ github.ref }}&rev=${{ github.sha }}&submodules=1'
steps:
- uses: cachix/install-nix-action@v27
with:
install_url: ${{ matrix.nix-version != 'latest' && format('https://releases.nixos.org/nix/nix-{0}/install', matrix.nix-version) || '' }}
- uses: DeterminateSystems/magic-nix-cache-action@v6
- name: Add SSH key to agent
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
run: |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "$SSH_KEY"
- name: Check flake outputs
run: nix flake check "$FLAKE" --no-build --all-systems --no-allow-import-from-derivation
build:
name: Build
runs-on: ubuntu-latest
needs: eval-check
strategy:
fail-fast: false
matrix:
system:
# A representative subset of systems.
# It would be nice to check funi here, but we can't run kernel builds
# on the GH runner.
- taiyi
- athebyne
- rastaban
- iso
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
FLAKE: 'git+ssh://[email protected]/${{ github.repository }}.git?ref=${{ github.ref }}&rev=${{ github.sha }}&submodules=1'
OUTPUT: 'nixosConfigurations.${{ matrix.system }}.config.system.build.toplevel'
steps:
- uses: cachix/install-nix-action@v27
- uses: DeterminateSystems/magic-nix-cache-action@v6
- name: Add SSH key to agent
env:
SSH_KEY: ${{ secrets.SSH_KEY }}
run: |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "$SSH_KEY"
- name: Check flake outputs
run: nix build "$FLAKE#$OUTPUT"