From af7661f9f1b6090453d48756583ae79ed81e21f0 Mon Sep 17 00:00:00 2001 From: JP-Ellis Date: Tue, 20 Oct 2026 15:47:03 +1100 Subject: [PATCH] chore(ci): download pact_ffi 0.5.12 from the dist-built release on Windows The Windows gRPC example job fetched pact_ffi 0.5.6 from the legacy libpact_ffi-v0.5.6 release as a single .gz file. The legacy release stops being published on 2027-06-30. The job now downloads pact_ffi-x86_64-pc-windows-msvc.zip from pact_ffi-v0.5.12, checks it against the published .sha256 file, and extracts pact_ffi.dll to ~/.pact. This also bumps the FFI library from 0.5.6 to 0.5.12, the first version that ships the dist archive layout. Assisted-by: Claude Code:claude-opus-5-5 --- .github/workflows/examples.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml index ec4a461c..336bef8a 100644 --- a/.github/workflows/examples.yml +++ b/.github/workflows/examples.yml @@ -249,8 +249,15 @@ jobs: run: | go install github.com/pact-foundation/pact-go/v2@latest #$HOME/go/bin/pact-go -l DEBUG install - curl -L -o ~/.pact/pact_ffi.dll.gz https://github.com/pact-foundation/pact-reference/releases/download/libpact_ffi-v0.5.6/pact_ffi-windows-x86_64.dll.gz - gunzip -N -f ~/.pact/pact_ffi.dll.gz + FFI_VERSION=0.5.12 + FFI_ARCHIVE=pact_ffi-x86_64-pc-windows-msvc.zip + mkdir -p ~/.pact + cd ~/.pact + curl -fsSL -O "https://github.com/pact-foundation/pact-reference/releases/download/pact_ffi-v${FFI_VERSION}/${FFI_ARCHIVE}" + curl -fsSL -O "https://github.com/pact-foundation/pact-reference/releases/download/pact_ffi-v${FFI_VERSION}/${FFI_ARCHIVE}.sha256" + sha256sum -c "${FFI_ARCHIVE}.sha256" + 7z x -y "${FFI_ARCHIVE}" pact_ffi.dll + cd "$GITHUB_WORKSPACE" cp ~/.pact/pact_ffi.dll examples/gRPC/area_calculator/consumer-go shell: bash env: