|
5 | 5 | using: composite |
6 | 6 | steps: |
7 | 7 | - name: Build and Test/Install CppInterOp |
8 | | - if: ${{ runner.os != 'Windows' && !endsWith(github.job, '-emscripten') }} |
| 8 | + if: ${{ runner.os != 'Windows' && !endsWith(matrix.name, '-emscripten') }} |
9 | 9 | shell: bash |
10 | 10 | run: | |
11 | 11 | LLVM_DIR="$(pwd)/llvm-project" |
|
80 | 80 | echo "CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH" >> $GITHUB_ENV |
81 | 81 |
|
82 | 82 | - name: Build and Test/Install CppInterOp on Windows systems |
83 | | - if: ${{ runner.os == 'Windows' && !endsWith(github.job, '-emscripten') }} |
| 83 | + if: ${{ runner.os == 'Windows' && !endsWith(matrix.name, '-emscripten') }} |
84 | 84 | shell: powershell |
85 | 85 | run: | |
86 | 86 | $env:PWD_DIR= $PWD.Path |
@@ -148,7 +148,7 @@ runs: |
148 | 148 | cmake --build . --config ${{ env.BUILD_TYPE }} --target check-cppinterop --parallel ${{ env.ncpus }} |
149 | 149 |
|
150 | 150 | - name: Emscripten build of CppInterOp on Unix systems (shared library) |
151 | | - if: ${{ runner.os != 'Windows' && endsWith(github.job, '-emscripten') }} |
| 151 | + if: ${{ runner.os != 'Windows' && endsWith(matrix.name, '-emscripten') }} |
152 | 152 | shell: bash -l {0} |
153 | 153 | run: | |
154 | 154 | set -e |
@@ -321,7 +321,7 @@ runs: |
321 | 321 | echo "PREFIX=$PREFIX" >> $GITHUB_ENV |
322 | 322 | |
323 | 323 | - name: Emscripten build of CppInterOp on Unix systems (static library) |
324 | | - if: runner.os != 'Windows' && !(startsWith(matrix.os, 'ubuntu') && matrix.clang-runtime == '19' && endsWith(matrix.os, 'arm')) && endsWith(github.job, '-emscripten') && matrix.build_static_library == 'On' |
| 324 | + if: runner.os != 'Windows' && !(startsWith(matrix.os, 'ubuntu') && matrix.clang-runtime == '19' && endsWith(matrix.os, 'arm')) && endsWith(matrix.name, '-emscripten') && matrix.build_static_library == 'On' |
325 | 325 | shell: bash -l {0} |
326 | 326 | run: | |
327 | 327 | # FIXME: Static library builds, but tests fail to build on Github runner for Ubuntu arm llvm 19 case |
@@ -443,7 +443,7 @@ runs: |
443 | 443 | echo "PREFIX=$PREFIX" >> $GITHUB_ENV |
444 | 444 |
|
445 | 445 | - name: Build and Test/Install CppInterOp on Windows systems (shared library) |
446 | | - if: ${{ runner.os == 'Windows' && endsWith(github.job, '-emscripten') }} |
| 446 | + if: ${{ runner.os == 'Windows' && endsWith(matrix.name, '-emscripten') }} |
447 | 447 | shell: powershell |
448 | 448 | run: | |
449 | 449 | micromamba create -f environment-wasm.yml --platform=emscripten-wasm32 |
@@ -567,7 +567,7 @@ runs: |
567 | 567 | echo "PREFIX=$env:PREFIX" >> $GITHUB_ENV |
568 | 568 |
|
569 | 569 | - name: Build and Test/Install CppInterOp on Windows systems (static library) |
570 | | - if: ${{ runner.os == 'Windows' && endsWith(github.job, '-emscripten') && matrix.build_static_library == 'On' && matrix.build_static_library == 'On' }} |
| 570 | + if: ${{ runner.os == 'Windows' && endsWith(matrix.name, '-emscripten') && matrix.build_static_library == 'On' && matrix.build_static_library == 'On' }} |
571 | 571 | shell: powershell |
572 | 572 | run: | |
573 | 573 | .\emsdk\emsdk activate ${{matrix.emsdk_ver}} |
|
0 commit comments