ci: build packages in parallel
This commit is contained in:
parent
ae2c3308db
commit
8bc9a4e87b
10
.github/workflows/build-flake-packages.sh
vendored
10
.github/workflows/build-flake-packages.sh
vendored
|
@ -1,10 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
|
|
||||||
set -xe
|
|
||||||
|
|
||||||
PACKAGES=$(nix flake show --json \
|
|
||||||
| jq '.packages."x86_64-linux" | keys[]')
|
|
||||||
|
|
||||||
for package in $PACKAGES; do
|
|
||||||
nix build --verbose -L .#$package
|
|
||||||
done
|
|
17
.github/workflows/cachix.yaml
vendored
17
.github/workflows/cachix.yaml
vendored
|
@ -9,11 +9,26 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
name:
|
||||||
|
- emacsPgtkGcc
|
||||||
|
- grafanaDashboards/nginx
|
||||||
|
- grafanaDashboards/node-exporter
|
||||||
|
- kaleidoscope-udev-rules
|
||||||
|
- sddm-sugar-candy
|
||||||
|
- spot
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
|
|
||||||
- uses: cachix/install-nix-action@v16
|
- uses: cachix/install-nix-action@v16
|
||||||
|
|
||||||
- uses: cachix/cachix-action@v10
|
- uses: cachix/cachix-action@v10
|
||||||
with:
|
with:
|
||||||
name: alarsyo
|
name: alarsyo
|
||||||
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
|
||||||
- run: .github/workflows/build-flake-packages.sh
|
|
||||||
|
- name: Build package
|
||||||
|
run: nix build --verbose -L .#"${{ matrix.name }}"
|
||||||
|
|
Loading…
Reference in a new issue