Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
snnn committed Nov 16, 2023
1 parent 24f1455 commit b19599c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@ steps:
- script: |
set -e -x
pushd '$(Build.SourcesDirectory)/cmake/external/emsdk'
./emsdk install 3.1.44
./emsdk activate 3.1.44
source ./emsdk_env.sh
export PATH=$(Build.SourcesDirectory)/cmake/external/emsdk/:$PATH
export PATH=$(Build.SourcesDirectory)/cmake/external/emsdk/ccache/git-emscripten_64bit/bin:$PATH
Expand Down Expand Up @@ -71,16 +69,7 @@ steps:
- ${{if eq(parameters.WithCache, false)}}:
- script: |
set -e -x
pushd '$(Build.SourcesDirectory)/cmake/external/emsdk'
./emsdk install 3.1.44
./emsdk activate 3.1.44
source ./emsdk_env.sh
source $(Build.SourcesDirectory)/cmake/external/emsdk/emsdk_env.sh
cd '$(Build.BinariesDirectory)'
python3 '$(Build.SourcesDirectory)/tools/ci_build/build.py' ${{parameters.Arguments}}
displayName: ${{parameters.DisplayName}}
env:
CCACHE_SLOPPINESS: include_file_ctime,include_file_mtime,time_macros
CCACHE_DIR: ${{parameters.CacheDir}}
_EMCC_CCACHE: 1
EM_COMPILER_WRAPPER: ccache
EM_DIR: '$(Build.SourcesDirectory)/cmake/external/emsdk/upstream/emscripten'
21 changes: 14 additions & 7 deletions tools/ci_build/github/azure-pipelines/templates/linux-wasm-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,13 +90,20 @@ jobs:
arguments: --new_dir $(Build.BinariesDirectory)/deps
workingDirectory: $(Build.BinariesDirectory)

- script: |
set -ex
cd '$(Build.SourcesDirectory)/cmake/external/emsdk'
./emsdk install 3.1.44 ccache-git-emscripten-64bit
./emsdk activate 3.1.44 ccache-git-emscripten-64bit
displayName: 'emsdk install and activate ccache for emscripten'
condition: eq('${{ parameters.WithCache }}', 'true')
- ${{if eq(parameters.WithCache, true)}}:
- script: |
set -ex
cd '$(Build.SourcesDirectory)/cmake/external/emsdk'
./emsdk install 3.1.44 ccache-git-emscripten-64bit
./emsdk activate 3.1.44 ccache-git-emscripten-64bit
displayName: 'emsdk install and activate ccache for emscripten'
- ${{if eq(parameters.WithCache, false)}}:
- script: |
set -ex
cd '$(Build.SourcesDirectory)/cmake/external/emsdk'
./emsdk install 3.1.44
./emsdk activate 3.1.44
displayName: 'emsdk install and activate ccache for emscripten'
- template: build-linux-wasm-step.yml
parameters:
Expand Down

0 comments on commit b19599c

Please sign in to comment.