From e1e16020f62a77b5e975e94e615f59a653efe75c Mon Sep 17 00:00:00 2001 From: Quick <31828688+Quick104@users.noreply.github.com> Date: Sat, 25 Jul 2026 21:32:13 +0000 Subject: [PATCH] ci: give the new workflow the deps it actually needs MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The first run exposed two gaps in the workflow itself. go build ./... fails without libvips headers, because h2non/bimg binds libvips through cgo and pkg-config; the Dockerfile installs the same package. And pnpm/action-setup resolves its version from package.json, but there is no package.json at the repo root — the packageManager field lives in web/package.json, and a job's defaults.run.working-directory does not apply to an action's inputs. Co-Authored-By: Claude Opus 5 (1M context) --- .github/workflows/ci.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b331bc4b..0f470e3d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,6 +24,14 @@ jobs: - name: Checkout uses: actions/checkout@v5 + # github.com/h2non/bimg binds libvips through cgo and pkg-config, so + # nothing under ./... compiles without the headers. The Dockerfile + # installs the same package in its build stage. + - name: Install libvips + run: | + sudo apt-get update + sudo apt-get install -y --no-install-recommends libvips-dev + - name: Set up Go uses: actions/setup-go@v6 with: @@ -68,8 +76,13 @@ jobs: - name: Checkout uses: actions/checkout@v5 + # The pnpm version comes from web/package.json's packageManager field — + # there is no package.json at the repo root, and `defaults.run` does not + # apply to an action's own inputs. - name: Set up pnpm uses: pnpm/action-setup@v4 + with: + package_json_file: web/package.json - name: Set up Node uses: actions/setup-node@v5