From 8fac9cd6b6beb26b0be29e07b0c83b62eba60667 Mon Sep 17 00:00:00 2001 From: tzssangglass Date: Wed, 25 Dec 2024 11:17:11 +0800 Subject: [PATCH] try to fix Signed-off-by: tzssangglass --- .github/workflows/tests.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index dc5310a5..59425cf4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -5,7 +5,7 @@ on: push: env: - KONG_VERSION: 3.4.2 + KONG_VERSION: release/3.4.x BUILD_ROOT: ${{ github.workspace }}/kong/bazel-bin/build concurrency: @@ -63,6 +63,22 @@ jobs: GH_TOKEN: ${{ github.token }} run: | cd kong + + # Find the .rockspec file (handles varying filenames like kong-3.4.x-0.rockspec) + ROCKSPEC_FILE=$(ls kong-*.rockspec | head -n 1) + + # Check if the rockspec file exists + if [[ -f "$ROCKSPEC_FILE" ]]; then + echo "Modifying lua-messagepack version in $ROCKSPEC_FILE" + + # Use sed to replace "lua-messagepack == 0.5.2" with "lua-messagepack == 0.5.2-1" + sed -i 's/"lua-messagepack == 0\.5\.2"/"lua-messagepack == 0.5.2-1"/' "$ROCKSPEC_FILE" + else + echo "Error: .rockspec file not found!" + exit 1 + fi + + # Proceed with the build steps make build-kong make build-venv BUILD_PREFIX=$BUILD_ROOT/kong-dev