From 61dc6b74678725dc0e0ac5c9f98caa52d0905688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jalil=20David=20Salam=C3=A9=20Messina?= Date: Mon, 29 Jul 2024 15:47:05 +0200 Subject: [PATCH] fix(ci): install through nix installer action The lix image thing is too broken (due to actions expecting things to be in /usr/bin --- .github/workflows/check.yml | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 3934b1d..dba6600 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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: | @@ -26,36 +25,34 @@ jobs: nix run nixpkgs#statix -- check . lockfile: runs-on: ubuntu-latest - container: - image: ghcr.io/lix-project/lix:2.90 needs: check 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