diff options
| author | a-kenji <aks.kenji@protonmail.com> | 2022-03-06 14:28:54 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-06 14:28:54 +0100 |
| commit | f5ae10de78d5fc5142a962dfe309b7c00533735c (patch) | |
| tree | 4dc1eab87afdfe6067ef171020cd2c8cecb0144c /.github | |
| parent | fix(readme): switch badges and gif (#1180) (diff) | |
| download | sl0ppij-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')
| -rw-r--r-- | .github/workflows/nix.yml | 49 |
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 |
