diff --git a/.github/workflows/extra-builds.yml b/.github/workflows/extra-builds.yml index 260394a3ffe..d7c6e13ff06 100644 --- a/.github/workflows/extra-builds.yml +++ b/.github/workflows/extra-builds.yml @@ -81,3 +81,17 @@ jobs: END 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 diff --git a/.github/workflows/nix-github-actions.yml b/.github/workflows/nix-github-actions.yml deleted file mode 100644 index 6d5c5b4b2dd..00000000000 --- a/.github/workflows/nix-github-actions.yml +++ /dev/null @@ -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