summaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2022-06-17 12:16:33 +0200
committerGitHub <noreply@github.com>2022-06-17 12:16:33 +0200
commit641c5a34d457531d96e3138cd0fe9fd5b59ca2db (patch)
treef723d2781304658312a3d13ad4450b894abadede /.github
parent464f21aebd3f0adf44e41b7ebaf67cd952cbddbd (diff)
add(ci): check for msrv (#1522)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/nix.yml23
1 files changed, 22 insertions, 1 deletions
diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml
index f2e7dd6e9..882e6c708 100644
--- a/.github/workflows/nix.yml
+++ b/.github/workflows/nix.yml
@@ -13,7 +13,7 @@ jobs:
runs-on: ubuntu-latest
name: "nix build"
environment: cachix
- timeout-minutes: 25
+ timeout-minutes: 35
steps:
- uses: actions/checkout@v3
with:
@@ -27,3 +27,24 @@ jobs:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: |
nix build || nix build --substituters 'https://cache.nixos.org' --extra-substituters ''
+ build-msrv:
+ runs-on: ubuntu-latest
+ name: "build msrv"
+ environment: cachix
+ 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@v17
+ - uses: cachix/cachix-action@v10
+ 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 .#zellij-msrv || nix build .#zellij-msrv --substituters 'https://cache.nixos.org' --extra-substituters ''
+ - if: ${{ failure() }}
+ run: |
+ echo "::error :: If this is the only ci step failing, it is likely that the MSRV needs to be bumped.