workflows: add concurrency to nix (#30)

The worker may be able to do multiple nix flake things at the same time
This commit is contained in:
Noa Aarts 2024-10-22 22:58:52 +02:00 committed by GitHub
parent 2ce725c76b
commit 5c1e2354ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -3,9 +3,21 @@ on:
pull_request:
push:
jobs:
tests:
checkout:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- run: nix build -L
- run: nix flake check -L --all-systems
check_flurry_package:
runs-on: self-hosted
steps:
- run: nix flake check -L --all-systems
build_flurry_package:
runs-on: self-hosted
needs: checkout
steps:
- run: nix build -L
build_flurry_shell:
runs-on: self-hosted
needs: checkout
steps:
- run: nix shell -L --command echo 'it works'