Fix broken GH CI #61
1 changed files with 2 additions and 16 deletions
18
.github/workflows/check.yml
vendored
18
.github/workflows/check.yml
vendored
|
@ -6,9 +6,6 @@ on:
|
||||||
- ./**.nix
|
- ./**.nix
|
||||||
- ./flake.lock
|
- ./flake.lock
|
||||||
pull_request:
|
pull_request:
|
||||||
# scheduled runs are run on my own infrastructure
|
|
||||||
# schedule:
|
|
||||||
# - cron: 5 4 * * 5 # At 04:05 on Friday.
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
check:
|
check:
|
||||||
|
@ -18,32 +15,21 @@ jobs:
|
||||||
- uses: DeterminateSystems/nix-installer-action@v13
|
- uses: DeterminateSystems/nix-installer-action@v13
|
||||||
with:
|
with:
|
||||||
source-url: "https://install.lix.systems/lix/lix-installer-x86_64-linux"
|
source-url: "https://install.lix.systems/lix/lix-installer-x86_64-linux"
|
||||||
|
diagnostic-endpoint: ""
|
||||||
- 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: |
|
||||||
nix flake check --verbose --keep-going
|
nix flake check --verbose --keep-going
|
||||||
nix run nixpkgs#statix -- check .
|
nix run nixpkgs#statix -- check .
|
||||||
lockfile:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: check
|
|
||||||
if: ${{ github.event_name == 'schedule' }} # only run when scheduled
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- uses: DeterminateSystems/nix-installer-action@v13
|
|
||||||
with:
|
|
||||||
source-url: "https://install.lix.systems/lix/lix-installer-x86_64-linux"
|
|
||||||
- uses: DeterminateSystems/update-flake-lock@v23
|
|
||||||
- name: Run `nix flake check`
|
|
||||||
run: nix flake check --verbose --keep-going
|
|
||||||
build-docs:
|
build-docs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
if: ${{ github.event_name != 'schedule' }} # only run when not scheduled
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
- uses: DeterminateSystems/magic-nix-cache-action@v7
|
- uses: DeterminateSystems/magic-nix-cache-action@v7
|
||||||
- uses: DeterminateSystems/nix-installer-action@v13
|
- uses: DeterminateSystems/nix-installer-action@v13
|
||||||
with:
|
with:
|
||||||
source-url: "https://install.lix.systems/lix/lix-installer-x86_64-linux"
|
source-url: "https://install.lix.systems/lix/lix-installer-x86_64-linux"
|
||||||
|
diagnostic-endpoint: ""
|
||||||
- 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
|
||||||
|
|
Loading…
Reference in a new issue