diff --git a/.github/workflows/build-revive-wasm.yml b/.github/workflows/build-revive-wasm.yml index 826880c..c316be7 100644 --- a/.github/workflows/build-revive-wasm.yml +++ b/.github/workflows/build-revive-wasm.yml @@ -9,6 +9,7 @@ on: env: CARGO_TERM_COLOR: always REVIVE_WASM_INSTALL_DIR: ${{ github.workspace }}/target/wasm32-unknown-emscripten/release + EMSCRIPTEN_VERSION: 3.1.64 jobs: build-revive-wasm: @@ -18,13 +19,6 @@ jobs: steps: - uses: actions/checkout@v4 - - run: | - rustup show - cargo --version - rustup +nightly show - cargo +nightly --version - bash --version - - name: Cache LLVM build id: cache-llvm uses: actions/cache@v3 @@ -37,13 +31,20 @@ jobs: - name: Install Dependencies if: steps.cache-llvm.outputs.cache-hit != 'true' run: | - sudo apt-get update - sudo apt-get install -y cmake ninja-build + apt-get update && apt-get install -y cmake ninja-build + rustup target add wasm32-unknown-emscripten # Install Emscripten git clone https://github.com/emscripten-core/emsdk.git cd emsdk - ./emsdk install latest - ./emsdk activate latest + ./emsdk install ${{ env.EMSCRIPTEN_VERSION }} + ./emsdk activate ${{ env.EMSCRIPTEN_VERSION }} + + - run: | + rustup show + cargo --version + rustup +nightly show + cargo +nightly --version + bash --version - name: Build LLVM if: steps.cache-llvm.outputs.cache-hit != 'true'