@@ -21,62 +21,34 @@ jobs:
2121 name : check
2222 if : github.repository == 'ynoproject/ynoengine'
2323 runs-on : ubuntu-latest
24+ container :
25+ image : ghcr.io/ynoproject/buildscripts:master
26+ credentials :
27+ username : ${{ github.actor }}
28+ password : ${{ secrets.github_token }}
2429 steps :
25- - name : Install dependencies
26- run : |
27- sudo apt-get update
28- sudo apt-get install -yqq --no-install-recommends --no-install-suggests \
29- build-essential cmake ninja-build git ca-certificates ccache
30- sudo pip3 install meson
31-
3230 - uses : actions/checkout@v6
33- - name : Checkout buildscripts
34- uses : actions/checkout@v6
35- with :
36- repository : EasyRPG/buildscripts
37- path : buildscripts
38-
39- - name : Get buildscripts commit hash
40- id : buildscripts-hash
41- working-directory : buildscripts
42- run : |
43- echo "hash=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
44-
45- - name : Cache Emscripten toolchain and libraries
46- id : cache
47- uses : actions/cache@v5
4831 with :
49- path : |
50- buildscripts/emscripten/emsdk-portable
51- buildscripts/emscripten/bin
52- buildscripts/emscripten/lib
53- buildscripts/emscripten/include
54- key : easyrpg-emscripten-${{ steps.buildscripts-hash.outputs.hash }}-${{ runner.os }}
55- restore-keys : |
56- easyrpg-emscripten-${{ steps.buildscripts-hash.outputs.hash }}-
57- easyrpg-emscripten-
58-
59- - name : Install Player dependencies
60- if : steps.cache.outputs.cache-hit != 'true'
61- run : bash 0_build_everything.sh
62- working-directory : buildscripts/emscripten
63- env :
64- BUILD_LIBLCF : " 1"
32+ path : ynoengine
6533
6634 - run : cmake --preset yno-simd-release
35+ working-directory : ynoengine
6736 env :
68- EASYRPG_BUILDSCRIPTS : " ${{ github.workspace }} /buildscripts"
37+ EASYRPG_BUILDSCRIPTS : " /root/workdir /buildscripts"
6938 - run : cmake --build --preset yno-simd-release
39+ working-directory : ynoengine
7040
7141 - run : cmake --preset yno-release
42+ working-directory : ynoengine
7243 env :
73- EASYRPG_BUILDSCRIPTS : " ${{ github.workspace }} /buildscripts"
44+ EASYRPG_BUILDSCRIPTS : " /root/workdir /buildscripts"
7445 - run : cmake --build --preset yno-release
46+ working-directory : ynoengine
7547
7648 - uses : actions/upload-artifact@v4
7749 with :
7850 name : ynoengine-wasm
7951 path : |
80- build/yno-simd-release/ynoengine-simd.*
81- build/yno-release/ynoengine.*
52+ ynoengine/ build/yno-simd-release/ynoengine-simd.*
53+ ynoengine/ build/yno-release/ynoengine.*
8254 if-no-files-found : warn
0 commit comments