Skip to content

Commit

Permalink
fix: Compile liblvgl.a first and then run a docker command again to b…
Browse files Browse the repository at this point in the history
…uild runtime.js
  • Loading branch information
richardgazdik committed Dec 12, 2024
1 parent f760490 commit 03174d5
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/publish-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,27 @@ jobs:
fi
echo "widget_functions=$WIDGET_LIST" >> $GITHUB_OUTPUT
# Cache LVGL library
- name: Cache LVGL library
id: cache-lvgl-lib
uses: actions/cache@v3
with:
path: /tmp/runtime/lib/liblvgl.a
key: lvgl-lib-${{ steps.lvgl-commit.outputs.commit_hash }}

- name: Build LVGL library
if: steps.cache-lvgl-lib.outputs.cache-hit != 'true'
run: |
docker run --rm \
-v /tmp/runtime:/work \
-w /work/lib \
coevin/emscripten-sdl2:main \
sh -c 'mkdir -p /tmp/build && \
cd /tmp/build && \
emcmake cmake /work/lib && \
emmake make -j8 && \
cp liblvgl.a /work/lib/'
- name: Build runtime
run: |
# Create build directory
Expand Down

0 comments on commit 03174d5

Please sign in to comment.