mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-02-14 17:00:26 +01:00
ci: Update action versions
This might fix the CI since previously it would run out of disk space. See: https://github.com/cachix/install-nix-action/pull/199
This commit is contained in:
parent
9cefe6c2b8
commit
a8a7d16e8a
12
.github/workflows/ci.yml
vendored
12
.github/workflows/ci.yml
vendored
@ -11,22 +11,22 @@ jobs:
|
|||||||
name: nix flake check
|
name: nix flake check
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: cachix/install-nix-action@v22
|
- uses: cachix/install-nix-action@v26
|
||||||
- run: nix flake check
|
- run: nix flake check
|
||||||
format:
|
format:
|
||||||
name: nix fmt -- --check **/*.nix
|
name: nix fmt -- --check **/*.nix
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: cachix/install-nix-action@v22
|
- uses: cachix/install-nix-action@v26
|
||||||
- run: nix fmt -- --check **/*.nix
|
- run: nix fmt -- --check **/*.nix
|
||||||
example:
|
example:
|
||||||
name: nix flake check ./example
|
name: nix flake check ./example
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- uses: cachix/install-nix-action@v22
|
- uses: cachix/install-nix-action@v26
|
||||||
- run: cp ./hardware/laptop.nix ./example/hardware-configuration.nix
|
- run: cp ./hardware/laptop.nix ./example/hardware-configuration.nix
|
||||||
- run: git add .
|
- run: git add .
|
||||||
- run: nix flake check ./example --no-write-lock-file --override-input nix-config "git+file://$(pwd | sed -e 's/\s/%20/g')?shallow=1"
|
- run: nix flake check ./example --no-write-lock-file --override-input nix-config "git+file://$(pwd | sed -e 's/\s/%20/g')?shallow=1"
|
||||||
|
Loading…
Reference in New Issue
Block a user