CI: Update GitHub actions

This commit is contained in:
kichikuou
2024-02-16 13:26:49 +09:00
parent 15b7236230
commit 618631c642
6 changed files with 17 additions and 16 deletions
+6 -6
View File
@@ -2,7 +2,7 @@ name: Emscripten Build
on: [push, pull_request]
env:
EM_VERSION: 3.1.44
EM_VERSION: 3.1.54
EM_CACHE_FOLDER: 'emsdk-cache'
jobs:
@@ -10,19 +10,19 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
submodules: true
- name: Setup cache
id: cache-system-libraries
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ${{env.EM_CACHE_FOLDER}}
key: ${{env.EM_VERSION}}-${{ runner.os }}
- name: Setup Emscripten toolchain
uses: mymindstorm/setup-emsdk@v12
uses: mymindstorm/setup-emsdk@v14
with:
version: ${{ env.EM_VERSION }}
actions-cache-folder: ${{env.EM_CACHE_FOLDER}}
@@ -32,12 +32,12 @@ jobs:
mkdir -p out/wasm
cd out/wasm
emcmake cmake -DCMAKE_BUILD_TYPE=Release ../../
make
make -j4
mkdir system3
mv system3.* system3/
- name: Upload artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: system3-wasm
path: out/wasm/system3