mirror of
https://github.com/zellij-org/zellij.git
synced 2024-11-23 19:10:09 +03:00
30 lines
717 B
YAML
30 lines
717 B
YAML
name: nix
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
name: "nix build"
|
|
environment: cachix
|
|
timeout-minutes: 25
|
|
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 || nix build --substituters 'https://cache.nixos.org' --extra-substituters ''
|