This repository has no description
1on:
2 - push
3
4jobs:
5 list:
6 runs-on: ubuntu-24.04
7 outputs:
8 matrix: ${{ steps.list.outputs.matrix }}
9 steps:
10 - uses: actions/checkout@v4
11 - uses: DeterminateSystems/nix-installer-action@main
12 with:
13 extra-conf: accept-flake-config = true
14 - uses: DeterminateSystems/magic-nix-cache-action@main
15 - name: List packages
16 id: list
17 run: |
18 eval "$(nix print-dev-env .#ci)"
19 matrix=$(nix-eval-jobs --flake .#checks.x86_64-linux --check-cache-status | jq -sc '[.[]|select(.isCached|not).attr]' | jq -c 'if length > 0 then . else ["pre-commit"] end')
20 echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
21
22 build:
23 needs: list
24 runs-on: ubuntu-24.04
25 strategy:
26 fail-fast: false
27 matrix:
28 pkg: ${{ fromJson(needs.list.outputs.matrix) }}
29 name: Build ${{ matrix.pkg }}
30 steps:
31 - uses: actions/checkout@v4
32 - uses: DeterminateSystems/nix-installer-action@main
33 with:
34 extra-conf: accept-flake-config = true
35 - uses: DeterminateSystems/magic-nix-cache-action@main
36 - name: Build
37 run: |
38 eval "$(nix print-dev-env .#ci)"
39 attic login --set-default tombl https://nix.tombl.net '${{secrets.ATTIC_TOKEN}}'
40 nix-fast-build --skip-cached --no-nom --flake '.#checks.x86_64-linux.${{ matrix.pkg }}^*' --attic-cache=linuxwasm