mirror of
https://github.com/cachix/cachix-action.git
synced 2025-06-09 17:45:12 +09:00
install-nix-action v11
This commit is contained in:
parent
8a239571fb
commit
de962fa7b2
2 changed files with 5 additions and 5 deletions
8
.github/workflows/test.yml
vendored
8
.github/workflows/test.yml
vendored
|
@ -32,7 +32,7 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- run: yarn install --frozen-lockfile
|
||||
- run: yarn build
|
||||
- uses: cachix/install-nix-action@v10
|
||||
- uses: cachix/install-nix-action@v11
|
||||
- name: Test public cache no signing key
|
||||
uses: ./
|
||||
with:
|
||||
|
@ -48,7 +48,7 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- run: yarn install --frozen-lockfile
|
||||
- run: yarn build
|
||||
- uses: cachix/install-nix-action@v10
|
||||
- uses: cachix/install-nix-action@v11
|
||||
- name: Test private cache
|
||||
uses: ./
|
||||
with:
|
||||
|
@ -66,11 +66,11 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
- run: yarn install --frozen-lockfile
|
||||
- run: yarn build
|
||||
- uses: cachix/install-nix-action@v10
|
||||
- uses: cachix/install-nix-action@v11
|
||||
- name: Test private cache
|
||||
uses: ./
|
||||
with:
|
||||
name: cachix-action
|
||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||
installCommand: 'nix-env -f https://github.com/NixOS/nixpkgs/archive/master.tar.gz -iA cachix'
|
||||
installCommand: 'nix-env -f https://cachix.org/api/v1/install -iA cachix'
|
||||
- run: nix-build test.nix
|
||||
|
|
2
test.nix
2
test.nix
|
@ -4,7 +4,7 @@
|
|||
, currentTime ? builtins.currentTime
|
||||
}:
|
||||
|
||||
with import <nixpkgs> {};
|
||||
with (import (fetchTarball "https://github.com/NixOS/nixpkgs/archive/21d8e70a69f704a6ab971b2d8265d40cc7bb69b1.tar.gz") {});
|
||||
|
||||
let
|
||||
drv = i: runCommand "${toString currentTime}-${toString i}" {} ''
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue