Skip to content

switch flake setup

switch flake setup #92

Workflow file for this run

name: "CI"
on:
pull_request:
push:
jobs:
check-proto:
runs-on: ubuntu-latest
needs: check

Check failure on line 9 in .github/workflows/ci.yml

View workflow run for this annotation

GitHub Actions / CI

Invalid workflow file

The workflow is not valid. .github/workflows/ci.yml (Line: 9, Col: 12): Job 'check-proto' depends on unknown job '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 run .#proto-builder protobuf/steam/protos protobuf/steam/src/generated
- run: nix run .#proto-builder protobuf/tf2/protos protobuf/tf2/src/generated
- run: nix run .#proto-builder protobuf/csgo/protos protobuf/csgo/src/generated
- run: nix run .#proto-builder protobuf/dota2/protos protobuf/dota2/src/generated
- run: |
git diff
git diff-index --quiet HEAD --
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 $GITHUB_OUTPUT
checks:
runs-on: ubuntu-latest
needs: [matrix]
strategy:
fail-fast: false
matrix: ${{fromJson(needs.miri-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: nom build .#checks.x86_64-linux.${{ matrix.check }}