mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-26 15:06:45 +00:00
CI: reconfigure install-nix-action
This commit is contained in:
parent
895ac4812a
commit
c1a31716a2
1 changed files with 17 additions and 10 deletions
27
.github/workflows/cachix.yml
vendored
27
.github/workflows/cachix.yml
vendored
|
@ -1,16 +1,23 @@
|
||||||
name: build-and-cache
|
name: build-and-cache
|
||||||
|
|
||||||
"on":
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- 'README.md'
|
- 'README.md'
|
||||||
- '.gitignore'
|
- '.gitignore'
|
||||||
- 'assets'
|
- 'assets'
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build-linux:
|
nix:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
package:
|
||||||
|
- default
|
||||||
|
- nix
|
||||||
|
- tidal
|
||||||
|
- maximal
|
||||||
steps:
|
steps:
|
||||||
- uses: easimon/maximize-build-space@v6
|
- uses: easimon/maximize-build-space@v6
|
||||||
with:
|
with:
|
||||||
|
@ -21,8 +28,11 @@ jobs:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: cachix/install-nix-action@v18
|
- uses: cachix/install-nix-action@v18
|
||||||
with:
|
with:
|
||||||
extra_nix_config: access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
extra_nix_config: |
|
||||||
nix_path: nixpkgs=channel:nixos-unstable
|
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
|
||||||
|
auto-optimise-store = true
|
||||||
|
experimental-features = nix-command flakes
|
||||||
|
nix_path: nixpkgs=channel:nixos-unstable
|
||||||
- uses: cachix/cachix-action@v12
|
- uses: cachix/cachix-action@v12
|
||||||
with:
|
with:
|
||||||
authToken: ${{ secrets.CACHIX_TOKEN }}
|
authToken: ${{ secrets.CACHIX_TOKEN }}
|
||||||
|
@ -32,8 +42,5 @@ jobs:
|
||||||
run: git config --global init.defaultBranch main
|
run: git config --global init.defaultBranch main
|
||||||
- name: Validate Flakes
|
- name: Validate Flakes
|
||||||
run: nix flake check
|
run: nix flake check
|
||||||
- name: Build declared flake packages
|
- name: Build Hyprland with default settings
|
||||||
run: |-
|
run: nix build .#${{ matrix.package }} --print-build-logs
|
||||||
nix build '.#tidal'
|
|
||||||
nix build '.#nix'
|
|
||||||
nix build '.#maximal'
|
|
||||||
|
|
Loading…
Reference in a new issue