2022-02-27 21:21:12 +03:00
|
|
|
name: nix
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
jobs:
|
2022-03-06 16:28:54 +03:00
|
|
|
#check:
|
|
|
|
#runs-on: ubuntu-latest
|
|
|
|
#name: "flake check"
|
|
|
|
#environment: cachix
|
|
|
|
#timeout-minutes: 5
|
|
|
|
#steps:
|
|
|
|
#- uses: actions/checkout@v3
|
|
|
|
#with:
|
|
|
|
## Nix Flakes doesn't work on shallow clones
|
|
|
|
#fetch-depth: 0
|
|
|
|
#- uses: cachix/install-nix-action@v16
|
|
|
|
#with:
|
|
|
|
#extra_nix_config: |
|
|
|
|
#experimental-features = nix-command flakes
|
|
|
|
#fetch-depth: 0
|
|
|
|
#- 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 flake check --print-build-logs --show-trace
|
|
|
|
|
|
|
|
build:
|
2022-02-27 21:21:12 +03:00
|
|
|
runs-on: ubuntu-latest
|
2022-03-06 16:28:54 +03:00
|
|
|
name: "build"
|
2022-03-02 20:48:42 +03:00
|
|
|
environment: cachix
|
2022-03-06 16:28:54 +03:00
|
|
|
timeout-minutes: 25
|
2022-02-27 21:21:12 +03:00
|
|
|
steps:
|
2022-03-03 19:42:54 +03:00
|
|
|
- uses: actions/checkout@v3
|
2022-02-27 21:21:12 +03:00
|
|
|
with:
|
|
|
|
# Nix Flakes doesn't work on shallow clones
|
|
|
|
fetch-depth: 0
|
|
|
|
- uses: cachix/install-nix-action@v16
|
|
|
|
with:
|
|
|
|
extra_nix_config: |
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
fetch-depth: 0
|
2022-03-02 20:48:42 +03:00
|
|
|
- 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 }}'
|
2022-02-27 21:21:12 +03:00
|
|
|
- run: nix build
|
2022-03-06 16:28:54 +03:00
|
|
|
develop:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
name: develop
|
|
|
|
environment: cachix
|
|
|
|
timeout-minutes: 10
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
# Nix Flakes doesn't work on shallow clones
|
|
|
|
fetch-depth: 0
|
|
|
|
- uses: cachix/install-nix-action@v16
|
|
|
|
with:
|
|
|
|
extra_nix_config: |
|
|
|
|
experimental-features = nix-command flakes
|
|
|
|
fetch-depth: 0
|
|
|
|
- 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 }}'
|
2022-03-02 20:48:42 +03:00
|
|
|
- run: nix develop --profile devShell
|