GHA: use ubuntu-20.04 runner

Recently github switched ubuntu-latest to ubuntu 22.04.
https://github.blog/changelog/2022-11-09-github-actions-ubuntu-latest-workflows-will-use-ubuntu-22-04/

as a consequence, wasi-sdk-17.0 binary doesn't work on ubuntu 20.04:

```
5d4353ee0338# ./.wasi-sdk-17.0/bin/clang
./.wasi-sdk-17.0/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.34' not found (required by ./.wasi-sdk-17.0/bin/clang)
./.wasi-sdk-17.0/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.32' not found (required by ./.wasi-sdk-17.0/bin/clang)
./.wasi-sdk-17.0/bin/clang: /lib/x86_64-linux-gnu/libc.so.6: version `GLIBC_2.33' not found (required by ./.wasi-sdk-17.0/bin/clang)
5d4353ee0338#
```

This commit switches it back to ubuntu 20.04 for now.
pull/273/head
YAMAMOTO Takashi 3 years ago
parent cee312d6d0
commit 92bde337b8

@ -17,7 +17,7 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-latest
- ubuntu-20.04
- macos-latest
steps:
- uses: actions/cache@v3
@ -27,10 +27,10 @@ jobs:
# enforce a clean build, in the unlikely case that some
# weird build error occur and ccache becomes a potential
# suspect.
key: 0-cache-ubuntu-latest-${{ github.run_id }}
key: 0-cache-${{ matrix.os }}-${{ github.run_id }}
restore-keys: |
0-cache-ubuntu-latest
if: matrix.os == 'ubuntu-latest'
0-cache-${{ matrix.os }}
if: startsWith(matrix.os, 'ubuntu-')
- uses: actions/cache@v3
with:
path: ~/Library/Caches/ccache
@ -54,7 +54,7 @@ jobs:
if: matrix.os == 'macos-latest'
- name: Install ccache, ninja (Linux)
run: sudo apt install ccache ninja-build
if: matrix.os == 'ubuntu-latest'
if: startsWith(matrix.os, 'ubuntu-')
- name: Build
run: NINJA_FLAGS=-v make package LLVM_CMAKE_FLAGS=-DLLVM_CCACHE_BUILD=ON
shell: bash

Loading…
Cancel
Save