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