Skip to content

Commit 2b6f43a

Browse files
authored
update readme examples
1 parent 03eb7dd commit 2b6f43a

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

README.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,24 @@ with:
2929
```
3030
3131
NOTE: currently this aciton only supports windows and linux (if someone needs mac please let me know)
32+
33+
NOTE 2: not all Vulkan SDK releases are available for all platforms -- if you need to differentiate by platform the recommended approach is use separate jobs (which can then have separate `vulkan-version`s). However, it is also possible to specify os-specific SDK versions by adding (`-linux`|`-windows`) suffix to the version key:
34+
```yaml
35+
setup-both-with-versions:
36+
strategy:
37+
matrix:
38+
runs-on: [ubuntu-latest, windows-latest]
39+
runs-on: ${{ matrix.runs-on }}
40+
steps:
41+
- uses: actions/checkout@v2
42+
- uses: humbletim/setup-vulkan-sdk@v1
43+
with:
44+
vulkan-version-linux: 1.2.154.0
45+
vulkan-version-windows: 1.2.154.1
46+
- name: Test Vulkan SDK Install
47+
shell: bash
48+
run: |
49+
echo "Vulkan SDK downloaded from '$VULKAN_SDK_URL'"
50+
echo "Vulkan SDK parsed app_version '$VULKAN_SDK_VERSION'"
51+
test -n "$VULKAN_SDK_VERSION"
52+
```

0 commit comments

Comments
 (0)