Merge pull request #81 from cachix/test-nix-master

test nix master with cachix
This commit is contained in:
Domen Kožar 2021-04-06 12:18:23 +02:00 committed by GitHub
commit 73e75d1a0c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 28 additions and 1 deletions

View file

@ -42,6 +42,7 @@ jobs:
- run: nix-build test.nix - run: nix-build test.nix
private-cache: private-cache:
if: ${{ github.ref == 'refs/heads/master' }}
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest, macos-latest] os: [ubuntu-latest, macos-latest]
@ -76,3 +77,25 @@ jobs:
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}' signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
installCommand: 'nix-env -j8 -f https://cachix.org/api/v1/install -iA cachix' installCommand: 'nix-env -j8 -f https://cachix.org/api/v1/install -iA cachix'
- run: nix-build test.nix - run: nix-build test.nix
nix-master:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
- name: Install Nix
uses: cachix/install-nix-action@v13
with:
nix_path: nixpkgs=channel:nixos-20.03
install_url: https://nixos-nix-install-tests.cachix.org/serve/lb41az54kzk6j12p81br4bczary7m145/install
install_options: '--tarball-url-prefix https://nixos-nix-install-tests.cachix.org/serve'
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Test public cache
uses: ./
with:
name: cachix-action
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
- run: nix-build test.nix

View file

@ -12,6 +12,10 @@ for file in /nix/store/*; do
# Skip .check file produced by --keep-failed # Skip .check file produced by --keep-failed
continue continue
;; ;;
*.lock)
# Skip .lock files
continue
;;
*) *)
echo "$file" echo "$file"
;; ;;