From 92bde337b8422fbf1fa82ac560f64777015820ac Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Sun, 25 Dec 2022 07:23:18 +0900 Subject: [PATCH] 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. --- .github/workflows/main.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a1a62a1..cb6ec53 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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