mirror of
https://codeberg.org/icewind/attic-action.git
synced 2026-06-03 09:34:11 +02:00
rework CI
This commit is contained in:
parent
13e2cf25a1
commit
6a2b9a1715
2 changed files with 28 additions and 20 deletions
46
.github/workflows/test.yml
vendored
46
.github/workflows/test.yml
vendored
|
|
@ -4,45 +4,53 @@ on:
|
|||
push:
|
||||
|
||||
jobs:
|
||||
tests:
|
||||
public-cache:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-18.04, macos]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v1
|
||||
- uses: actions/checkout@v2
|
||||
- run: yarn install --frozen-lockfile
|
||||
- run: yarn build
|
||||
- run: yarn test
|
||||
- uses: cachix/install-nix-action@v8
|
||||
- name: Test public cache
|
||||
uses: ./
|
||||
with:
|
||||
name: cachix-action
|
||||
file: test.nix
|
||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||
- run: nix-build test.nix
|
||||
|
||||
public-cache-no-signing-key:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-18.04, macos]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: yarn install --frozen-lockfile
|
||||
- run: yarn build
|
||||
- uses: cachix/install-nix-action@v8
|
||||
- name: Test public cache no signing key
|
||||
uses: ./
|
||||
with:
|
||||
name: cachix-action
|
||||
file: test.nix
|
||||
signingKey: ''
|
||||
- name: Test public cache no pushing
|
||||
uses: ./
|
||||
with:
|
||||
name: cachix-action
|
||||
skipNixBuild: true
|
||||
- name: Test nixBuildArgs parameter
|
||||
uses: ./
|
||||
with:
|
||||
name: cachix-action
|
||||
file: test-with-arg.nix
|
||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY }}'
|
||||
nixBuildArgs: --argstr arg foobar
|
||||
- run: nix-build test.nix
|
||||
|
||||
private-cache:
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-18.04, macos]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- run: yarn install --frozen-lockfile
|
||||
- run: yarn build
|
||||
- uses: cachix/install-nix-action@v8
|
||||
- name: Test private cache
|
||||
uses: ./
|
||||
with:
|
||||
name: cachix-action-private
|
||||
file: test.nix
|
||||
signingKey: '${{ secrets.CACHIX_SIGNING_KEY_PRIVATE }}'
|
||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||
- run: nix-build test.nix
|
||||
|
|
|
|||
2
dist/main/push-paths.sh
vendored
2
dist/main/push-paths.sh
vendored
|
|
@ -1,4 +1,4 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
comm -13 <(sort /tmp/store-path-pre-build) <(nix path-info --all | grep -v '\.drv$') | $1 push $2
|
||||
comm -13 <(sort /tmp/store-path-pre-build) <(nix path-info --all | grep -v '\.drv$' | sort) | $1 push -j8 $2
|
||||
Loading…
Add table
Add a link
Reference in a new issue