Skip to content

Commit

Permalink
fix(ci): install through nix installer action
Browse files Browse the repository at this point in the history
The lix image thing is too broken (due to actions expecting things to be
in /usr/bin
  • Loading branch information
jalil-salame committed Jul 29, 2024
1 parent 62b0c0f commit 48d914a
Showing 1 changed file with 12 additions and 11 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,11 @@ on:
jobs:
check:
runs-on: ubuntu-latest
container:
image: ghcr.io/lix-project/lix:2.90
steps:
- uses: actions/checkout@v4
- name: Enable flakes
run: echo 'experimental-features = nix-command flakes' >> ~/.config/nix/nix.conf
- uses: DeterminateSystems/nix-installer-action@v13
with:
source-url: | https://install.lix.systems/lix/lix-installer-x86_64-linux
- uses: DeterminateSystems/magic-nix-cache-action@v7
- name: Run `nix flake check`
run: |
Expand All @@ -32,30 +31,32 @@ jobs:
if: ${{ github.event_name == 'schedule' }} # only run when scheduled
steps:
- uses: actions/checkout@v4
- name: Enable flakes
run: echo 'experimental-features = nix-command flakes' >> ~/.config/nix/nix.conf
- 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-documentation:
build-docs:
runs-on: ubuntu-latest
container:
image: ghcr.io/lix-project/lix:2.90
if: ${{ github.event_name != 'schedule' }} # only run when not scheduled
steps:
- 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/nix-installer-action@v13
with:
source-url: | https://install.lix.systems/lix/lix-installer-x86_64-linux
- name: Build documentation
run: nix build .#docs --print-build-logs
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./result
deploy:
deploy-docs:
runs-on: ubuntu-latest
needs: build-documentation
needs: build-docs
if: ${{ github.event_name == 'push' }} # only run on main branch
permissions:
pages: write
Expand Down

0 comments on commit 48d914a

Please sign in to comment.