ci: Move nix build to extra-builds.yml

Skip duplicate actions on nix build.
This commit is contained in:
Krystine Sherwin 2024-05-24 09:09:48 +12:00
parent c71262f66b
commit 1aae0bcd40
No known key found for this signature in database
2 changed files with 14 additions and 15 deletions

View File

@ -81,3 +81,17 @@ jobs:
END END
make -C build -f ../Makefile CXX=clang -j$(nproc) make -C build -f ../Makefile CXX=clang -j$(nproc)
nix-build:
name: "Build nix flake"
needs: pre_job
if: needs.pre_job.outputs.should_skip != 'true'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: cachix/install-nix-action@v26
with:
install_url: https://releases.nixos.org/nix/nix-2.18.1/install
- run: nix build .?submodules=1

View File

@ -1,15 +0,0 @@
name: "build nix flake"
on:
pull_request:
push:
jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
submodules: true
- uses: cachix/install-nix-action@v26
with:
install_url: https://releases.nixos.org/nix/nix-2.18.1/install
- run: nix build .?submodules=1