aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authora-kenji <aks.kenji@protonmail.com>2022-03-06 14:28:54 +0100
committerGitHub <noreply@github.com>2022-03-06 14:28:54 +0100
commitf5ae10de78d5fc5142a962dfe309b7c00533735c (patch)
tree4dc1eab87afdfe6067ef171020cd2c8cecb0144c /.github/workflows
parentfix(readme): switch badges and gif (#1180) (diff)
downloadsl0ppij-f5ae10de78d5fc5142a962dfe309b7c00533735c.tar.gz
sl0ppij-f5ae10de78d5fc5142a962dfe309b7c00533735c.tar.xz
sl0ppij-f5ae10de78d5fc5142a962dfe309b7c00533735c.zip
add(nix): add crate2nix (#1181)
* add(nix): add crate2nix To have a better experience on ci, due to improved caching of dependencies. Also organize file hierarchy slightly. * ci(nix): manually check a default system Is needed because `nix flake check` accidentally tries to build IFD.
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/nix.yml49
1 files changed, 45 insertions, 4 deletions
diff --git a/.github/workflows/nix.yml b/.github/workflows/nix.yml
index f6ef3e36..c78b831b 100644
--- a/.github/workflows/nix.yml
+++ b/.github/workflows/nix.yml
@@ -9,11 +9,33 @@ on:
- main
jobs:
- nix:
+ #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:
runs-on: ubuntu-latest
- name: nix-build
+ name: "build"
environment: cachix
- timeout-minutes: 15
+ timeout-minutes: 25
steps:
- uses: actions/checkout@v3
with:
@@ -29,6 +51,25 @@ jobs:
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
- run: nix build
+ 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 }}'
- run: nix develop --profile devShell