Skip to content

Commit d37e00f

Browse files
committed
chore: change env vulkan version to global scope
1 parent 402c935 commit d37e00f

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

.github/workflows/menlo-build.yml

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ on:
2323
]
2424
workflow_dispatch:
2525

26+
env:
27+
VULKAN_VERSION: 1.3.261.1
28+
2629
jobs:
2730
create-draft-release:
2831
runs-on: ubuntu-latest
@@ -38,7 +41,6 @@ jobs:
3841
run: echo "VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV && echo "::set-output name=version::${GITHUB_REF#refs/tags/}"
3942
env:
4043
GITHUB_REF: ${{ github.ref }}
41-
VULKAN_VERSION: 1.3.261.1
4244
- name: Create Draft Release
4345
id: create_release
4446
uses: softprops/action-gh-release@v2
@@ -350,13 +352,8 @@ jobs:
350352
if: ${{ matrix.vulkan && (matrix.os == 'win') }}
351353
# continue-on-error: true
352354
run: |
353-
Write-Host "VULKAN_VERSION: $env:VULKAN_VERSION"
354-
$url = "https://sdk.lunarg.com/sdk/download/$env:VULKAN_VERSION/windows/VulkanSDK-$env:VULKAN_VERSION-Installer.exe"
355-
Write-Host "Downloading from URL: $url"
356355
curl.exe -o $env:RUNNER_TEMP/VulkanSDK-Installer.exe -L "https://sdk.lunarg.com/sdk/download/${env:VULKAN_VERSION}/windows/VulkanSDK-${env:VULKAN_VERSION}-Installer.exe"
357-
Write-Host "Expected VULKAN_SDK path: C:\VulkanSDK\$env:VULKAN_VERSION"
358-
Write-Host "Expected PATH addition: C:\VulkanSDK\$env:VULKAN_VERSION\bin"
359-
# https://sdk.lunarg.com/sdk/download/1.3.261.1/windows/VulkanSDK-1.3.261.1-Installer.exe
356+
& "$env:RUNNER_TEMP\VulkanSDK-Installer.exe" --accept-licenses --default-answer --confirm-command install
360357
Add-Content $env:GITHUB_ENV "VULKAN_SDK=C:\VulkanSDK\${env:VULKAN_VERSION}"
361358
Add-Content $env:GITHUB_PATH "C:\VulkanSDK\${env:VULKAN_VERSION}\bin"
362359

0 commit comments

Comments
 (0)