ci: build packages in parallel

This commit is contained in:
Antoine Martin 2022-01-11 11:56:30 +01:00
parent ae2c3308db
commit 8bc9a4e87b
2 changed files with 16 additions and 11 deletions

View file

@ -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

View file

@ -9,11 +9,26 @@ on:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
name:
- emacsPgtkGcc
- grafanaDashboards/nginx
- grafanaDashboards/node-exporter
- kaleidoscope-udev-rules
- sddm-sugar-candy
- spot
steps:
- uses: actions/checkout@v2
- uses: cachix/install-nix-action@v16
- uses: cachix/cachix-action@v10
with:
name: alarsyo
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: .github/workflows/build-flake-packages.sh
- name: Build package
run: nix build --verbose -L .#"${{ matrix.name }}"