Skip to content

Commit

Permalink
update cachix action
Browse files Browse the repository at this point in the history
Flakes are built in as of 15.  Using authenticated requests was on the updated
README.  Much, much better.
  • Loading branch information
psionic-k committed Nov 22, 2021
1 parent b8c9277 commit 9b3ebcf
Showing 1 changed file with 7 additions and 22 deletions.
29 changes: 7 additions & 22 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,10 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0 # nix flakes do not work on shallow clones
- uses: cachix/install-nix-action@v14.1
- uses: cachix/install-nix-action@v15
with:
extra_nix_config: experimental-features = nix-command flakes
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
- uses: cachix/cachix-action@v10
with:
name: cargo2nix-gh
Expand All @@ -56,37 +57,21 @@ jobs:
nix build ./examples/4-independent-packaging# \
--override-input cargo2nix github:cargo2nix/cargo2nix?rev=$GITHUB_SHA
else
sleep 30
nix flake lock ./examples/1-hello-world# \
--override-input cargo2nix github:cargo2nix/cargo2nix?rev=$GITHUB_SHA
sleep 30
nix flake lock ./examples/1-hello-world# \
--override-input cargo2nix github:cargo2nix/cargo2nix?rev=$GITHUB_SHA \
--override-input nixpkgs github:nixos/nixpkgs/nixpkgs-21.05-darwin
sleep 30
nix build ./examples/1-hello-world# --no-update-lock-file
sleep 30
nix flake lock ./examples/2-bigger-project# \
--override-input cargo2nix github:cargo2nix/cargo2nix?rev=$GITHUB_SHA
sleep 30
nix flake lock ./examples/2-bigger-project# \
--override-input cargo2nix github:cargo2nix/cargo2nix?rev=$GITHUB_SHA \
--override-input nixpkgs github:nixos/nixpkgs/nixpkgs-21.05-darwin
sleep 30
nix build ./examples/2-bigger-project# --no-update-lock-file
sleep 30
nix flake lock ./examples/3-cross-compiling# \
--override-input cargo2nix github:cargo2nix/cargo2nix?rev=$GITHUB_SHA
sleep 30
nix flake lock ./examples/3-cross-compiling#
--override-input cargo2nix github:cargo2nix/cargo2nix?rev=$GITHUB_SHA \
# --override-input nixpkgs github:nixos/nixpkgs/nixpkgs-21.05-darwin
sleep 30
nix build ./examples/3-cross-compiling# --no-update-lock-file
sleep 30
nix flake lock ./examples/4-independent-packaging# \
--override-input cargo2nix github:cargo2nix/cargo2nix?rev=$GITHUB_SHA
sleep 30
nix flake lock ./examples/4-independent-packaging# \
--override-input cargo2nix github:cargo2nix/cargo2nix?rev=$GITHUB_SHA \
--override-input nixpkgs github:nixos/nixpkgs/nixpkgs-21.05-darwin
sleep 30
nix build ./examples/4-independent-packaging# --no-update-lock-file
fi
Expand Down

0 comments on commit 9b3ebcf

Please sign in to comment.