From 5c1e2354ba0c41106be25f4edd2e382b578eb337 Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Tue, 22 Oct 2024 22:58:52 +0200 Subject: [PATCH] workflows: add concurrency to nix (#30) The worker may be able to do multiple nix flake things at the same time --- .github/workflows/build_nix.yml | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build_nix.yml b/.github/workflows/build_nix.yml index 6c519d3..36e6d2e 100644 --- a/.github/workflows/build_nix.yml +++ b/.github/workflows/build_nix.yml @@ -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'