Files
AnyPS5/.github/workflows/emscripten-libraries.yml
T
MarcZX10 b3a2770fa3 ci(emscripten): clone emsdk at its 6.0.12 tag in the release and portability jobs
Both jobs cloned emsdk at its default branch, so the emsdk scripts they run could change between runs. The clone now uses the 6.0.12 release tag, which exists upstream, and both jobs install and activate the same version.
2026-11-04 11:34:59 +00:00

44 lines
1.5 KiB
YAML

name: Emscripten library portability
on:
pull_request:
paths:
- .github/workflows/emscripten-libraries.yml
- core/libs/**
push:
branches: [main]
paths:
- .github/workflows/emscripten-libraries.yml
- core/libs/**
permissions:
contents: read
jobs:
library-portability:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v7
with:
persist-credentials: false
- name: Compile native library sources and test guest long doubles
run: |
cmake -S core/libs/tests/emscripten -B build-native -DCMAKE_BUILD_TYPE=Release
cmake --build build-native --parallel 2
ctest --test-dir build-native --output-on-failure --no-tests=error
- uses: actions/setup-node@v6
with:
node-version: '26'
- name: Compile memory64 libraries and test conversions and module errors
shell: bash
run: |
ANYPS5_TEST_NODE="$(command -v node)"
git clone --depth 1 --branch 6.0.12 https://github.com/emscripten-core/emsdk.git "$RUNNER_TEMP/emsdk"
"$RUNNER_TEMP/emsdk/emsdk" install 6.0.12
"$RUNNER_TEMP/emsdk/emsdk" activate 6.0.12
source "$RUNNER_TEMP/emsdk/emsdk_env.sh"
emcmake cmake -S core/libs/tests/emscripten -B build-portable -DCMAKE_BUILD_TYPE=Release -DANYPS5_NODE="$ANYPS5_TEST_NODE"
cmake --build build-portable --parallel 2
ctest --test-dir build-portable --output-on-failure --no-tests=error