|
7 | 7 | runs-on: ${{ matrix.os }}
|
8 | 8 | strategy:
|
9 | 9 | matrix:
|
10 |
| - os: [ubuntu-latest, macos-latest, windows-latest] |
| 10 | + os: [ubuntu-22.04, macos-latest, windows-latest] |
11 | 11 | clang_version: [10.0.0]
|
12 | 12 | # use different LLVM versions among oses because of the lack of
|
13 | 13 | # official assets on github.
|
14 | 14 | include:
|
15 |
| - - os: ubuntu-latest |
| 15 | + - os: ubuntu-22.04 |
16 | 16 | clang_version: 10.0.0
|
17 | 17 | llvm_asset_suffix: x86_64-linux-gnu-ubuntu-18.04
|
18 | 18 | - os: macos-latest
|
19 | 19 | clang_version: 10.0.0
|
20 | 20 | llvm_asset_suffix: x86_64-apple-darwin
|
21 | 21 | - os: windows-latest
|
22 | 22 | clang_version: 10.0.0
|
23 |
| - - os: ubuntu-latest |
| 23 | + - os: ubuntu-22.04 |
24 | 24 | clang_version: 16.0.0
|
25 | 25 | llvm_asset_suffix: x86_64-linux-gnu-ubuntu-18.04
|
26 | 26 | enable_pic: true
|
|
40 | 40 | set -ex
|
41 | 41 | sudo apt-get update
|
42 | 42 | sudo apt-get install -y libtinfo5
|
43 |
| - if: matrix.os == 'ubuntu-latest' |
| 43 | + if: startsWith(matrix.os, 'ubuntu-') |
44 | 44 |
|
45 | 45 | - name: Install LLVM tools (Windows)
|
46 | 46 | shell: bash
|
|
82 | 82 | echo "CC=$CLANG_DIR/clang" >> $GITHUB_ENV
|
83 | 83 | echo "AR=$CLANG_DIR/llvm-ar" >> $GITHUB_ENV
|
84 | 84 | echo "NM=$CLANG_DIR/llvm-nm" >> $GITHUB_ENV
|
85 |
| - if: matrix.os == 'ubuntu-latest' |
| 85 | + if: startsWith(matrix.os, 'ubuntu-') |
86 | 86 |
|
87 | 87 | - name: Disable libsetjmp for old LLVM
|
88 | 88 | shell: bash
|
@@ -137,7 +137,7 @@ jobs:
|
137 | 137 | # test entrypoints: `undefined symbol: __main_argc_argv`.
|
138 | 138 | # The older (<15.0.7) version of wasm-ld does not provide `__heap_end`,
|
139 | 139 | # which is required by our malloc implementation.
|
140 |
| - if: matrix.os == 'ubuntu-latest' && matrix.clang_version != '10.0.0' |
| 140 | + if: startsWith(matrix.os, 'ubuntu-') && matrix.clang_version != '10.0.0' |
141 | 141 |
|
142 | 142 | - uses: actions/upload-artifact@v4.4.0
|
143 | 143 | with:
|
|
0 commit comments