Skip to content

Commit 1e73d87

Browse files
authored
update build-cache
1 parent 0eee26a commit 1e73d87

File tree

1 file changed

+52
-6
lines changed

1 file changed

+52
-6
lines changed

.github/workflows/build-cache.yml

Lines changed: 52 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,27 +18,73 @@ jobs:
1818
id: checkout
1919
uses: actions/checkout@v4
2020

21-
- name: Cache Vulkan SDK
22-
uses: ./.github/actions/ubuntu-vulkan-cache
21+
- name: Get latest Vulkan SDK version
22+
id: vulkan_sdk_version
23+
run: |
24+
echo "VULKAN_SDK_VERSION=$(curl https://vulkan.lunarg.com/sdk/latest/linux.txt)" >> "$GITHUB_ENV"
25+
26+
- name: Setup Cache
27+
uses: actions/cache@v4
28+
id: cache-sdk
29+
with:
30+
path: ./vulkan_sdk
31+
key: vulkan-sdk-${{ env.VULKAN_SDK_VERSION }}-${{ runner.os }}
32+
33+
- name: Setup Vulkan SDK
34+
if: steps.cache-sdk.outputs.cache-hit != 'true'
35+
uses: ./.github/actions/linux-setup-vulkan
36+
with:
37+
path: ./vulkan_sdk
38+
version: ${{ env.VULKAN_SDK_VERSION }}
2339

2440
ubuntu-24-spacemit-cache:
2541
runs-on: ubuntu-24.04
2642

43+
env:
44+
# Make sure this is in sync with build-linux-cross.yml
45+
SPACEMIT_IME_TOOLCHAIN_VERSION: "1.1.2"
46+
2747
steps:
2848
- name: Clone
2949
id: checkout
3050
uses: actions/checkout@v4
3151

32-
- name: Cache SpacemiT Toolchain
33-
uses: ./.github/actions/ubuntu-spacemit-cache
52+
- name: Setup Cache
53+
uses: actions/cache@v4
54+
id: cache-toolchain
55+
with:
56+
path: ./spacemit_toolchain
57+
key: spacemit-ime-toolchain-v${{ env.SPACEMIT_IME_TOOLCHAIN_VERSION }}-${{ runner.os }}
58+
59+
- name: Setup SpacemiT Toolchain
60+
if: steps.cache-toolchain.outputs.cache-hit != 'true'
61+
uses: ./.github/actions/linux-setup-spacemit
62+
with:
63+
path: ./spacemit_toolchain
64+
version: ${{ env.SPACEMIT_IME_TOOLCHAIN_VERSION }}
3465

3566
windows-2022-rocm-cache:
3667
runs-on: windows-2022
3768

69+
env:
70+
# Make sure this is in sync with build.yml
71+
HIPSDK_INSTALLER_VERSION: "25.Q3"
72+
3873
steps:
3974
- name: Clone
4075
id: checkout
4176
uses: actions/checkout@v4
4277

43-
- name: Cache ROCm Installation
44-
uses: ./.github/actions/windows-rocm-cache
78+
- name: Setup Cache
79+
uses: actions/cache@v4
80+
id: cache-rocm
81+
with:
82+
path: C:\Program Files\AMD\ROCm
83+
key: rocm-${{ env.HIPSDK_INSTALLER_VERSION }}-${{ runner.os }}
84+
85+
- name: Setup ROCm
86+
if: steps.cache-rocm.outputs.cache-hit != 'true'
87+
uses: ./.github/actions/windows-setup-rocm
88+
with:
89+
path: C:\Program Files\AMD\ROCm
90+
version: ${{ env.HIPSDK_INSTALLER_VERSION }}

0 commit comments

Comments
 (0)