vulkan/update-script: always update to latest upstream tags
Only the loader and the headers need to stay in sync, everything else is fine being mismatched, and this way we're not stuck to the LunarG release cycles.
This commit is contained in:
parent
5130c4f4ef
commit
19ca45e39f
|
@ -1,23 +1,29 @@
|
||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#!nix-shell -i bash -p curl jq nix-update
|
#!nix-shell -i bash -p nix-update
|
||||||
|
|
||||||
set -euf -o pipefail
|
set -euf -o pipefail
|
||||||
|
|
||||||
NEW_VERSION=$(curl https://vulkan.lunarg.com/sdk/latest/linux.json | jq -r '.linux')
|
V_PACKAGES=(
|
||||||
|
|
||||||
VULKAN_SDK_PACKAGES=(
|
|
||||||
"vulkan-headers"
|
"vulkan-headers"
|
||||||
"spirv-headers"
|
|
||||||
"glslang"
|
|
||||||
"vulkan-loader"
|
"vulkan-loader"
|
||||||
"spirv-tools"
|
"spirv-tools"
|
||||||
"spirv-cross"
|
|
||||||
"vulkan-validation-layers"
|
"vulkan-validation-layers"
|
||||||
"vulkan-tools"
|
"vulkan-tools"
|
||||||
"vulkan-tools-lunarg"
|
"vulkan-tools-lunarg"
|
||||||
"vulkan-extension-layer"
|
"vulkan-extension-layer"
|
||||||
)
|
)
|
||||||
|
|
||||||
for P in "${VULKAN_SDK_PACKAGES[@]}"; do
|
SDK_PACKAGES=(
|
||||||
nix-update "$P" --version "$NEW_VERSION" --commit
|
"spirv-headers"
|
||||||
|
"spirv-cross"
|
||||||
|
)
|
||||||
|
|
||||||
|
nix-update glslang --version-regex '(\d+\.\d+\.\d+)' --commit
|
||||||
|
|
||||||
|
for P in "${V_PACKAGES[@]}"; do
|
||||||
|
nix-update "$P" --version-regex "(?:v)(.*)" --commit
|
||||||
|
done
|
||||||
|
|
||||||
|
for P in "${SDK_PACKAGES[@]}"; do
|
||||||
|
nix-update "$P" --version-regex "(?:sdk-)(.*)" --commit
|
||||||
done
|
done
|
||||||
|
|
Loading…
Reference in a new issue