From b8e213d62697934a9bf3b43f87cb437717148cbb Mon Sep 17 00:00:00 2001 From: teutat3s Date: Tue, 7 Nov 2023 00:12:26 +0100 Subject: [PATCH 1/3] ci: try Node.js docker images --- .forgejo/workflows/check.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml index 89475a43..3a425cad 100644 --- a/.forgejo/workflows/check.yml +++ b/.forgejo/workflows/check.yml @@ -3,10 +3,16 @@ on: [push] jobs: Check: - runs-on: nix-flakes + runs-on: ubuntu-latest + env: + USER: root 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: From dbc99864df7412eec2364478ef04da269b2d7a61 Mon Sep 17 00:00:00 2001 From: teutat3s Date: Thu, 9 Nov 2023 04:05:16 +0100 Subject: [PATCH 2/3] Bump flake flake.parts input --- flake.lock | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/flake.lock b/flake.lock index d5552e11..1eb34c26 100644 --- a/flake.lock +++ b/flake.lock @@ -91,11 +91,11 @@ "nixpkgs-lib": "nixpkgs-lib" }, "locked": { - "lastModified": 1696343447, - "narHash": "sha256-B2xAZKLkkeRFG5XcHHSXXcP7To9Xzr59KXeZiRf4vdQ=", + "lastModified": 1698882062, + "narHash": "sha256-HkhafUayIqxXyHH1X8d9RDl1M2CkFgZLjKD3MzabiEo=", "owner": "hercules-ci", "repo": "flake-parts", - "rev": "c9afaba3dfa4085dbd2ccb38dfade5141e33d9d4", + "rev": "8c9fa2545007b49a5db5f650ae91f227672c3877", "type": "github" }, "original": { @@ -253,11 +253,11 @@ "nixpkgs-lib": { "locked": { "dir": "lib", - "lastModified": 1696019113, - "narHash": "sha256-X3+DKYWJm93DRSdC5M6K5hLqzSya9BjibtBsuARoPco=", + "lastModified": 1698611440, + "narHash": "sha256-jPjHjrerhYDy3q9+s5EAsuhyhuknNfowY6yt6pjn9pc=", "owner": "NixOS", "repo": "nixpkgs", - "rev": "f5892ddac112a1e9b3612c39af1b72987ee5783a", + "rev": "0cbe9f69c234a7700596e943bfae7ef27a31b735", "type": "github" }, "original": { From c66846d1489ed202cb6a088a58c626d55ae1cc0e Mon Sep 17 00:00:00 2001 From: teutat3s Date: Thu, 9 Nov 2023 04:19:26 +0100 Subject: [PATCH 3/3] 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