From b1edabd3da93d5027e7f7a4e85d7b7aeb10bb5e3 Mon Sep 17 00:00:00 2001 From: Joshua King Date: Fri, 5 Jun 2026 09:23:35 -0400 Subject: [PATCH] ci: use go-react image toolchains instead of setup-go/setup-node On the go-react runner image, npm/node/go already work (npm ci succeeds), but the setup-go/setup-node actions install tool-cache binaries that can't execute on this runner (node/22.22.3/x64: "cannot execute"), failing the jobs in their post steps. Drop those actions and use the image's built-in toolchains; also reduces flaky github.com action clones. Co-Authored-By: Claude Opus 4.8 --- .gitea/workflows/build-dev.yaml | 17 ++++++----------- .gitea/workflows/ci.yaml | 12 ------------ 2 files changed, 6 insertions(+), 23 deletions(-) diff --git a/.gitea/workflows/build-dev.yaml b/.gitea/workflows/build-dev.yaml index 62edcd1..fa648f1 100644 --- a/.gitea/workflows/build-dev.yaml +++ b/.gitea/workflows/build-dev.yaml @@ -7,8 +7,6 @@ on: workflow_dispatch: env: - GO_VERSION: "1.25" - NODE_VERSION: "22" BINARY_NAME: remoterig jobs: @@ -18,15 +16,12 @@ jobs: - name: Checkout uses: actions/checkout@v4 - - name: Setup Go - uses: actions/setup-go@v5 - with: - go-version: ${{ env.GO_VERSION }} - - - name: Setup Node - uses: actions/setup-node@v4 - with: - node-version: ${{ env.NODE_VERSION }} + # The go-react image ships Go + Node, so no setup-go/setup-node: + # those download tool-cache binaries that don't run on this runner. + - name: Toolchain versions + run: | + go version + node --version - name: Build React frontend run: | diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index e326203..4709915 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -11,10 +11,6 @@ jobs: runs-on: go-react steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: npm - run: npm ci - run: npm run lint - run: npx tsc --noEmit @@ -24,10 +20,6 @@ jobs: runs-on: go-react steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: npm - run: npm ci - run: npm test @@ -36,10 +28,6 @@ jobs: runs-on: go-react steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 - with: - node-version: 22 - cache: npm - run: npm ci - run: npm run build - name: Upload build artifacts