ci: check SPIR-V with Arch's shaderc
- commit
- 214ff0fbce32c6981acd0366f8dd4907e0a4cd73
- author
- brice · · 2026-09-26 16:25 UTC
- parent
- 68ce22d
- signature
- GPG Verified
CD88F9E564E0102646FB6077A1A07C7C7C3E349D· arch-gpg Verified for the committer email
1 file · +10 -2
M .github/workflows/ci.yml +10 -2
| @@ -17,12 +17,20 @@ jobs: | |||
| 17 | 17 | # Libraries loaded at runtime through purego; lavapipe gives tests a Vulkan device. | |
| 18 | 18 | - run: >- | |
| 19 | 19 | sudo apt-get update && sudo apt-get install -y | |
| 20 | - | glslc libwayland-server0 libxkbcommon0 libinput10 libseat1 libvulkan1 mesa-vulkan-drivers | |
| 20 | + | libwayland-server0 libxkbcommon0 libinput10 libseat1 libvulkan1 mesa-vulkan-drivers | |
| 21 | 21 | - run: go install github.com/bnema/hexcheck/cmd/hexcheck@v0.2.0 | |
| 22 | 22 | - run: go install github.com/vektra/mockery/v3@v3.8.0 | |
| 23 | 23 | - run: go install honnef.co/go/tools/cmd/staticcheck@latest | |
| 24 | 24 | - run: make check | |
| 25 | 25 | - run: make race | |
| 26 | 26 | - run: make mocks-check | |
| 27 | - | - run: make spv-check | |
| 28 | 27 | - run: staticcheck ./... | |
| 28 | + | # SPIR-V bytes depend on the glslc version: build with Arch's shaderc, as developers do. | |
| 29 | + | shaders: | |
| 30 | + | runs-on: ubuntu-latest | |
| 31 | + | container: archlinux:latest | |
| 32 | + | steps: | |
| 33 | + | - run: pacman -Syu --noconfirm git go make shaderc | |
| 34 | + | - uses: actions/checkout@v4 | |
| 35 | + | - run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
| 36 | + | - run: make spv-check | |
| @@ -17,12 +17,20 @@ jobs: | |||||
| 17 | # Libraries loaded at runtime through purego; lavapipe gives tests a Vulkan device. | 17 | # Libraries loaded at runtime through purego; lavapipe gives tests a Vulkan device. | ||
| 18 | - run: >- | 18 | - run: >- | ||
| 19 | sudo apt-get update && sudo apt-get install -y | 19 | sudo apt-get update && sudo apt-get install -y | ||
| 20 | - | glslc libwayland-server0 libxkbcommon0 libinput10 libseat1 libvulkan1 mesa-vulkan-drivers | 20 | + | libwayland-server0 libxkbcommon0 libinput10 libseat1 libvulkan1 mesa-vulkan-drivers |
| 21 | - run: go install github.com/bnema/hexcheck/cmd/hexcheck@v0.2.0 | 21 | - run: go install github.com/bnema/hexcheck/cmd/hexcheck@v0.2.0 | ||
| 22 | - run: go install github.com/vektra/mockery/v3@v3.8.0 | 22 | - run: go install github.com/vektra/mockery/v3@v3.8.0 | ||
| 23 | - run: go install honnef.co/go/tools/cmd/staticcheck@latest | 23 | - run: go install honnef.co/go/tools/cmd/staticcheck@latest | ||
| 24 | - run: make check | 24 | - run: make check | ||
| 25 | - run: make race | 25 | - run: make race | ||
| 26 | - run: make mocks-check | 26 | - run: make mocks-check | ||
| 27 | - | - run: make spv-check | |||
| 28 | - run: staticcheck ./... | 27 | - run: staticcheck ./... | ||
| 28 | + | # SPIR-V bytes depend on the glslc version: build with Arch's shaderc, as developers do. | |||
| 29 | + | shaders: | |||
| 30 | + | runs-on: ubuntu-latest | |||
| 31 | + | container: archlinux:latest | |||
| 32 | + | steps: | |||
| 33 | + | - run: pacman -Syu --noconfirm git go make shaderc | |||
| 34 | + | - uses: actions/checkout@v4 | |||
| 35 | + | - run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |||
| 36 | + | - run: make spv-check | |||