From c66846d1489ed202cb6a088a58c626d55ae1cc0e Mon Sep 17 00:00:00 2001 From: teutat3s Date: Thu, 9 Nov 2023 04:19:26 +0100 Subject: [PATCH] ci: nix based image --- .forgejo/workflows/check.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml index 3a425cad..5dceeca4 100644 --- a/.forgejo/workflows/check.yml +++ b/.forgejo/workflows/check.yml @@ -3,20 +3,15 @@ on: [push] jobs: Check: - runs-on: ubuntu-latest - env: - USER: root + runs-on: nix-flakes steps: - name: Check out repository code uses: https://code.forgejo.org/actions/checkout@v4 - - name: Install sudo - run: "apt update && apt install -y sudo" - - name: Install nix - uses: https://github.com/cachix/install-nix-action@v23 - name: Prepare cachix uses: https://github.com/cachix/cachix-action@v12 with: name: pub-solar + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' - name: Run flake checks run: | nix --print-build-logs --verbose --accept-flake-config flake check