Skip to content

Commit

Permalink
Update cachix-dev-env.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
b-rodrigues authored Apr 6, 2024
1 parent 080aa5f commit 76d1bdd
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/cachix-dev-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,22 @@ jobs:
- uses: cachix/install-nix-action@v25
with:
nix_path: nixpkgs=channel:nixos-unstable

- uses: cachix/cachix-action@v14
with:
name: b-rodrigues
# If you chose signing key for write access
# signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
# If you chose API tokens for write access OR if you have a private cache
authToken: '${{ secrets.CACHIX_AUTH }}'
- run: |
nix-build
nix-store -qR --include-outputs $(nix-instantiate default.nix) | cachix push b-rodrigues

- run: |
if [ "$RUNNER_OS" == "Linux" ]; then
nix-build --argstr system x86_64-linux
nix-build --argstr system aarch64-linux
else
nix-build
fi
- run: nix-store -qR --include-outputs $(nix-instantiate default.nix) | cachix push b-rodrigues
- run: nix-shell --run "echo OK"

0 comments on commit 76d1bdd

Please sign in to comment.