mirror of
https://codeberg.org/demostf/frontend.git
synced 2026-06-03 18:24:12 +02:00
32 lines
902 B
YAML
32 lines
902 B
YAML
name: "CI"
|
|
on:
|
|
pull_request:
|
|
push:
|
|
|
|
jobs:
|
|
matrix:
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
matrix: ${{ steps.set-matrix.outputs.matrix }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: cachix/install-nix-action@v27
|
|
- id: set-matrix
|
|
run: echo "matrix={\"check\":$(nix eval --json '.#checks.x86_64-linux' --apply 'builtins.attrNames')}" | tee -a $GITHUB_OUTPUT
|
|
|
|
checks:
|
|
runs-on: ubuntu-latest
|
|
needs: [matrix]
|
|
strategy:
|
|
fail-fast: false
|
|
matrix: ${{fromJson(needs.matrix.outputs.matrix)}}
|
|
name: ${{ matrix.check }}
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: cachix/install-nix-action@v26
|
|
- uses: icewind1991/attic-action@v1
|
|
with:
|
|
name: ci
|
|
instance: https://cache.icewind.me
|
|
authToken: "${{ secrets.ATTIC_TOKEN }}"
|
|
- run: nix build .#checks.x86_64-linux.${{ matrix.check }}
|