fix(ci): install through nix installer action
All checks were successful
/ check (push) Successful in 23s
/ build (audiomenu) (push) Successful in 1s
/ build (docs) (push) Successful in 1s
/ build (jpassmenu) (push) Successful in 1s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 1s
/ build (nvim) (push) Successful in 11s
/ update-lockfile (push) Has been skipped
All checks were successful
/ check (push) Successful in 23s
/ build (audiomenu) (push) Successful in 1s
/ build (docs) (push) Successful in 1s
/ build (jpassmenu) (push) Successful in 1s
/ build (nixosConfigurations.vm.config.system.build.toplevel) (push) Successful in 1s
/ build (nvim) (push) Successful in 11s
/ update-lockfile (push) Has been skipped
The lix image thing is too broken (due to actions expecting things to be in /usr/bin
This commit is contained in:
parent
62b0c0f97b
commit
61dc6b7467
1 changed files with 12 additions and 15 deletions
27
.github/workflows/check.yml
vendored
27
.github/workflows/check.yml
vendored
|
@ -13,12 +13,11 @@ on:
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: ghcr.io/lix-project/lix:2.90
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Enable flakes
|
- uses: DeterminateSystems/nix-installer-action@v13
|
||||||
run: echo 'experimental-features = nix-command flakes' >> ~/.config/nix/nix.conf
|
with:
|
||||||
|
source-url: "https://install.lix.systems/lix/lix-installer-x86_64-linux"
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@v7
|
- uses: DeterminateSystems/magic-nix-cache-action@v7
|
||||||
- name: Run `nix flake check`
|
- name: Run `nix flake check`
|
||||||
run: |
|
run: |
|
||||||
|
@ -26,36 +25,34 @@ jobs:
|
||||||
nix run nixpkgs#statix -- check .
|
nix run nixpkgs#statix -- check .
|
||||||
lockfile:
|
lockfile:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: ghcr.io/lix-project/lix:2.90
|
|
||||||
needs: check
|
needs: check
|
||||||
if: ${{ github.event_name == 'schedule' }} # only run when scheduled
|
if: ${{ github.event_name == 'schedule' }} # only run when scheduled
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Enable flakes
|
- uses: DeterminateSystems/nix-installer-action@v13
|
||||||
run: echo 'experimental-features = nix-command flakes' >> ~/.config/nix/nix.conf
|
with:
|
||||||
|
source-url: "https://install.lix.systems/lix/lix-installer-x86_64-linux"
|
||||||
- uses: DeterminateSystems/update-flake-lock@v23
|
- uses: DeterminateSystems/update-flake-lock@v23
|
||||||
- name: Run `nix flake check`
|
- name: Run `nix flake check`
|
||||||
run: nix flake check --verbose --keep-going
|
run: nix flake check --verbose --keep-going
|
||||||
build-documentation:
|
build-docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
container:
|
|
||||||
image: ghcr.io/lix-project/lix:2.90
|
|
||||||
if: ${{ github.event_name != 'schedule' }} # only run when not scheduled
|
if: ${{ github.event_name != 'schedule' }} # only run when not scheduled
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- name: Enable flakes
|
|
||||||
run: echo 'experimental-features = nix-command flakes' >> ~/.config/nix/nix.conf
|
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@v7
|
- uses: DeterminateSystems/magic-nix-cache-action@v7
|
||||||
|
- uses: DeterminateSystems/nix-installer-action@v13
|
||||||
|
with:
|
||||||
|
source-url: "https://install.lix.systems/lix/lix-installer-x86_64-linux"
|
||||||
- name: Build documentation
|
- name: Build documentation
|
||||||
run: nix build .#docs --print-build-logs
|
run: nix build .#docs --print-build-logs
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: actions/upload-pages-artifact@v3
|
uses: actions/upload-pages-artifact@v3
|
||||||
with:
|
with:
|
||||||
path: ./result
|
path: ./result
|
||||||
deploy:
|
deploy-docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
needs: build-documentation
|
needs: build-docs
|
||||||
if: ${{ github.event_name == 'push' }} # only run on main branch
|
if: ${{ github.event_name == 'push' }} # only run on main branch
|
||||||
permissions:
|
permissions:
|
||||||
pages: write
|
pages: write
|
||||||
|
|
Loading…
Reference in a new issue