zellij/.github/workflows/nix.yml
dependabot[bot] 3b05f12d2e
build(deps): bump cachix/cachix-action from 10 to 12 (#1891)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-11-01 09:34:20 +01:00

48 lines
1.4 KiB
YAML

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@v17
- 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 ''
build-msrv:
runs-on: ubuntu-latest
name: "build msrv"
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@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 .#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."