Skip to content

Commit 7dd50b8

Browse files
committed
Cache emsdk and qt
1 parent 28e6d72 commit 7dd50b8

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/wasm.yml

+18-1
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,15 @@ jobs:
2121
- name: Check-out repository
2222
uses: actions/checkout@v4
2323

24+
- name: Cache emsdk
25+
id: cache-emsdk
26+
uses: actions/cache@v4
27+
with:
28+
path: ~/emsdk
29+
key: ${{ runner.os }}-emsdk
30+
2431
- name: Install emsdk
25-
if: False
32+
if: steps.cache-emsdk.outputs.cache-hit != 'true'
2633
shell: bash
2734
run: |
2835
git clone https://github.com/emscripten-core/emsdk.git
@@ -31,13 +38,23 @@ jobs:
3138
./emsdk install 3.1.50 # this version is needed for Qt 6.7
3239
./emsdk activate 3.1.50
3340
41+
- name: Cache Qt
42+
id: cache-qt
43+
uses: actions/cache@v4
44+
with:
45+
path: ~/Qt
46+
key: ${{ runner.os }}-qt
47+
3448
- name: Install Qt for WebAssembly
49+
if: steps.cache-qt.outputs.cache-hit != 'true'
3550
shell: bash
3651
run: |
3752
curl -L -O https://download.qt.io/official_releases/online_installers/qt-unified-mac-x64-online.dmg
3853
chmod u+x qt-unified-mac-x64-online.dmg
3954
hdiutil attach qt-unified-mac-x64-online.dmg
4055
/Volumes/qt-online-installer-macOS-x64-4.8.0/qt-online-installer-macOS-x64-4.8.0.app/Contents/MacOS/qt-online-installer-macOS-x64-4.8.0 \
56+
--email ${{ secrets.QT_ACCOUNT_EMAIL }} \
57+
--pw ${{ secrets.QT_ACCOUNT_PASSWORD }} \
4158
--root ~/Qt \
4259
--accept-licenses \
4360
--accept-obligations \

0 commit comments

Comments
 (0)