Skip to content

Commit

Permalink
CI: change emscripten to proper release version
Browse files Browse the repository at this point in the history
Allows easier updating of emscripten to specific versions
  • Loading branch information
wirew0rm committed Oct 9, 2023
1 parent 7d4d2b1 commit 508126c
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build_cmake.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,10 @@ jobs:
cd
git clone https://github.com/emscripten-core/emsdk.git
cd emsdk
# Download and install the latest SDK tools.
./emsdk install releases-03ecb526947f6a3702a0d083083799fe410d3893-64bit
# Make the "latest" SDK "active" for the current user. (writes .emscripten file)
./emsdk activate releases-03ecb526947f6a3702a0d083083799fe410d3893-64bit
# Activate PATH and other environment variables in the current terminal
source ./emsdk_env.sh
# Download and install emscripten.
./emsdk install 3.1.30 # 01/2023 (latest = 3.1.43 -> 09/2023)
# Make "active" for the current user. (writes .emscripten file)
./emsdk activate 3.1.30
- name: Install sonar-scanner and build-wrapper
if: matrix.configurations.compiler == 'gcc12' && matrix.cmake-build-type == 'Debug'
Expand All @@ -112,8 +110,9 @@ jobs:
# Use a bash shell, so we can use the same syntax for environment variable access regardless of the host operating system
shell: bash
run: |
export SYSTEM_NODE=`which node` # use system node instead of old version distributed with emsdk for threading support
source ~/emsdk/emsdk_env.sh
emcmake cmake -S . -B ../build -DCMAKE_BUILD_TYPE=${{ matrix.cmake-build-type }} -DENABLE_TESTING=ON
emcmake cmake -S . -B ../build -DCMAKE_BUILD_TYPE=${{ matrix.cmake-build-type }} -DENABLE_TESTING=ON -DCMAKE_CROSSCOMPILING_EMULATOR=${SYSTEM_NODE}
- name: Build
if: matrix.configurations.compiler != 'gcc12' || matrix.cmake-build-type != 'Debug'
Expand Down

0 comments on commit 508126c

Please sign in to comment.