Skip to content

Commit 03174d5

Browse files
committed
fix: Compile liblvgl.a first and then run a docker command again to build runtime.js
1 parent f760490 commit 03174d5

File tree

1 file changed

+21
-0
lines changed

1 file changed

+21
-0
lines changed

.github/workflows/publish-tests.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,27 @@ jobs:
107107
fi
108108
echo "widget_functions=$WIDGET_LIST" >> $GITHUB_OUTPUT
109109
110+
# Cache LVGL library
111+
- name: Cache LVGL library
112+
id: cache-lvgl-lib
113+
uses: actions/cache@v3
114+
with:
115+
path: /tmp/runtime/lib/liblvgl.a
116+
key: lvgl-lib-${{ steps.lvgl-commit.outputs.commit_hash }}
117+
118+
- name: Build LVGL library
119+
if: steps.cache-lvgl-lib.outputs.cache-hit != 'true'
120+
run: |
121+
docker run --rm \
122+
-v /tmp/runtime:/work \
123+
-w /work/lib \
124+
coevin/emscripten-sdl2:main \
125+
sh -c 'mkdir -p /tmp/build && \
126+
cd /tmp/build && \
127+
emcmake cmake /work/lib && \
128+
emmake make -j8 && \
129+
cp liblvgl.a /work/lib/'
130+
110131
- name: Build runtime
111132
run: |
112133
# Create build directory

0 commit comments

Comments
 (0)