diff options
author | a-kenji <aks.kenji@protonmail.com> | 2022-12-12 08:19:46 +0100 |
---|---|---|
committer | a-kenji <aks.kenji@protonmail.com> | 2022-12-12 08:19:46 +0100 |
commit | bb2b8ddc827ec1628992fec494a2d100f1be4448 (patch) | |
tree | 7b88e7ec12a1447db08b98af2b3d40ed9255f54e | |
parent | 67ac1190a7039d99f4803e95a4689238d52eaa7b (diff) |
fix(ci): move `nix build` -> `nix-develop`
This will trigger the nix build workflow, only on changes in the nix
files.
- This won't generate precompiled artifacts for any person wanting to
use them from the main branch anymore.
Also PR's that pass CI won't be able to be run with:
```
nix run github:zellij-org/zellij/pr#
```
without compilation anymore on any linux, or darwin system.
-rw-r--r-- | .github/workflows/nix-develop.yml | 17 | ||||
-rw-r--r-- | .github/workflows/nix.yml | 28 |
2 files changed, 17 insertions, 28 deletions
diff --git a/.github/workflows/nix-develop.yml b/.github/workflows/nix-develop.yml index 1b1257b66..9b34a4633 100644 --- a/.github/workflows/nix-develop.yml +++ b/.github/workflows/nix-develop.yml @@ -53,3 +53,20 @@ jobs: # If you chose API tokens for write access OR if you have a private cache authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - run: nix develop --profile devShell + build: + runs-on: ubuntu-latest + name: "nix build" + timeout-minutes: 35 + steps: + - uses: actions/checkout@v3 + with: + # Nix Flakes doesn't work on shallow clones + fetch-depth: 0 + - uses: cachix/install-nix-action@v18 + - uses: cachix/cachix-action@v12 + with: + name: zellij + # If you chose API tokens for write access OR if you have a private cache + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + - run: | + nix build || nix build --substituters 'https://cache.nixos.org' --extra-substituters '' diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml deleted file mode 100644 index e4318ba55..000000000 --- a/.github/workflows/nix.yml +++ /dev/null @@ -1,28 +0,0 @@ -name: nix - -on: - push: - branches: - - main - pull_request: - branches: - - main - -jobs: - build: - runs-on: ubuntu-latest - name: "nix build" - timeout-minutes: 35 - steps: - - uses: actions/checkout@v3 - with: - # Nix Flakes doesn't work on shallow clones - fetch-depth: 0 - - uses: cachix/install-nix-action@v18 - - uses: cachix/cachix-action@v12 - with: - name: zellij - # If you chose API tokens for write access OR if you have a private cache - authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - - run: | - nix build || nix build --substituters 'https://cache.nixos.org' --extra-substituters '' |