diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fa29b01..6407ebe 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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"