Skip to content

Commit

Permalink
avoid unnecessary cache
Browse files Browse the repository at this point in the history
  • Loading branch information
LEXUGE committed Sep 27, 2022
1 parent 11cce3c commit 6814f07
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,13 @@ jobs:
fetch-depth: 0
- uses: cachix/install-nix-action@v16

- uses: cachix/cachix-action@v8
- uses: cachix/cachix-action@v10
if: ${{ github.event_name == 'push' }}
with:
name: dcompass
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
# Don't push source or .iso files as they are pointless to take up precious cache space.
pushFilter: '(-source$|nixpkgs\.tar\.gz$)'

# Run the general flake checks
- run: nix flake check -vL
Expand Down
1 change: 1 addition & 0 deletions commit.nix
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ pkgs.mkShell {
find . -path ./target -prune -false -o -type f -name '*.sh' -exec shellcheck {} +
find . -path ./target -prune -false -o -type f -name '*.sh' -exec shfmt -w {} +
find . -path ./target -prune -false -o -type f -name '*.nix' -exec nixfmt {} +
nix flake update
cargo update
cargo fmt -- --check
cargo build
Expand Down
12 changes: 6 additions & 6 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 6814f07

Please sign in to comment.