Skip to content

Commit

Permalink
ci: use nix flake for building
Browse files Browse the repository at this point in the history
  • Loading branch information
kubkon committed Dec 20, 2024
1 parent d8b7850 commit a9982f9
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,12 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: true
- uses: goto-bus-stop/setup-zig@v1
- name: Install Nix
uses: DeterminateSystems/nix-installer-action@v15
with:
version: master
- run: zig fmt --check src
- run: zig build test
- run: zig build run
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Set up Nix cache
uses: DeterminateSystems/magic-nix-cache-action@v8
- run: nix develop --command bash -c "zig fmt --check src"
- run: nix develop --command bash -c "zig build test"
- run: nix develop --command bash -c "zig build run"

0 comments on commit a9982f9

Please sign in to comment.