From adda30849c11b925ecbea6689d83cf4c0c092aae Mon Sep 17 00:00:00 2001 From: Anton Oreskin Date: Wed, 9 Sep 2026 16:42:51 +0200 Subject: [PATCH] Pin advanced example CI dependencies --- .github/workflows/test.yml | 21 +++++++++++++++++++-- CHANGELOG.md | 2 ++ 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f0f0999..e683642 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,12 +14,26 @@ env: # Pin the required compiler so release artifacts moving with V development # cannot destabilize the supported lane. V_VERSION: 0.5.2 + VULKAN_COMMIT: cd304bc19fd2a669d29b2d1a7975d55ee3b61952 + GLFW_COMMIT: 3d7c1ddacb7215a7bbeb5fef0d7a68c90ba392ed jobs: test: runs-on: ubuntu-24.04 steps: - uses: actions/checkout@v7 + - name: Check out pinned Vulkan module + uses: actions/checkout@v7 + with: + repository: antono2/vulkan + ref: ${{ env.VULKAN_COMMIT }} + path: .ci-modules/vulkan + - name: Check out pinned GLFW module + uses: actions/checkout@v7 + with: + repository: antono2/glfw + ref: ${{ env.GLFW_COMMIT }} + path: .ci-modules/glfw - name: Validate generator provenance marker run: | generator_commit=$(cat GENERATOR_COMMIT) @@ -37,8 +51,11 @@ jobs: install -m 0644 opencl.v convenience.v ownership.v program.v event.v image.v svm.v capabilities.v external_interop.v v.mod VERSION LICENSE GENERATOR_COMMIT "$HOME/.vmodules/antono2/opencl/" install -d "$HOME/.vmodules/antono2/opencl/include/CL" install -m 0644 include/CL/opencl.h "$HOME/.vmodules/antono2/opencl/include/CL/opencl.h" - v install antono2.vulkan - v install antono2.glfw + test "$(git -C .ci-modules/vulkan rev-parse HEAD)" = "$VULKAN_COMMIT" + test "$(git -C .ci-modules/glfw rev-parse HEAD)" = "$GLFW_COMMIT" + install -d "$HOME/.vmodules/antono2/vulkan" "$HOME/.vmodules/antono2/glfw" + cp -a .ci-modules/vulkan/. "$HOME/.vmodules/antono2/vulkan/" + cp -a .ci-modules/glfw/. "$HOME/.vmodules/antono2/glfw/" - name: Run installed-package smoke test run: | v -cc gcc run test diff --git a/CHANGELOG.md b/CHANGELOG.md index 39782b9..b456034 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- Pin Vulkan and GLFW example dependencies to immutable revisions in CI rather + than relying on mutable VPM installs. - Ignore local compiler products and caches so building the bundled examples does not dirty a source checkout.