Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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
Expand Down
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down