Skip to content

Commit

Permalink
fix: fix emscripten build step
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelCastilloB committed Dec 26, 2024
1 parent 5d282fc commit 52e48a1
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,6 @@ jobs:
with:
arch: x64

# Install Emscripten
- name: Install Emscripten
if: runner.os != 'Windows' && matrix.compiler == 'emscripten'
shell: bash
Expand All @@ -143,8 +142,8 @@ jobs:
cd emsdk
./emsdk install latest
./emsdk activate latest
source ./emsdk_env.sh
echo "source $PWD/emsdk_env.sh" >> $GITHUB_ENV
echo "EMSDK=$PWD" >> $GITHUB_ENV
echo "PATH=$PWD:$PWD/upstream/emscripten:$PATH" >> $GITHUB_ENV
# Build on Unix systems
- name: Build (Unix)
Expand All @@ -171,12 +170,11 @@ jobs:
esac
cmake --build . --config Release
# Build on Emscripten
- name: Build (Emscripten)
if: runner.os != 'Windows' && matrix.compiler == 'emscripten'
shell: bash
run: |
source emsdk/emsdk_env.sh || true
source $EMSDK/emsdk_env.sh
cmake -DCMAKE_BUILD_TYPE=Release \
-DVERSION_MAJOR=${{ env.VERSION_MAJOR }} \
-DVERSION_MINOR=${{ env.VERSION_MINOR }} \
Expand Down

0 comments on commit 52e48a1

Please sign in to comment.