mirror of
https://github.com/google/sandboxed-api.git
synced 2024-03-22 13:11:30 +08:00
GitHub Worklows: Update OS/compiler matrix, deprecate GCC 6 and 7
To fix Python related errors, explicitly install `libclang1-dev` and `clang` PIP packages that match. PiperOrigin-RevId: 532411402 Change-Id: I448a5db4e7d802b7929d93844827906f4e4413de
This commit is contained in:
parent
cc8b5fb4fc
commit
340ca4f37a
76
.github/workflows/ubuntu-cmake.yml
vendored
76
.github/workflows/ubuntu-cmake.yml
vendored
@ -11,41 +11,63 @@ jobs:
|
|||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
|
# Ubuntu 22.04: Use preinstalled Clang 12.0.1, 13.0.1 and 14.0.0
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
compiler: clang
|
compiler: clang
|
||||||
compiler-version: 11
|
compiler-version: 14
|
||||||
# Ubuntu 22.04 is in beta
|
libclang-version: 14
|
||||||
ignore-errors: true
|
pip-clang-version: "14.0"
|
||||||
|
ignore-errors: false
|
||||||
|
- os: ubuntu-22.04
|
||||||
|
compiler: clang
|
||||||
|
compiler-version: 13
|
||||||
|
libclang-version: 13
|
||||||
|
pip-clang-version: "13.0.1"
|
||||||
|
ignore-errors: false
|
||||||
|
- os: ubuntu-22.04
|
||||||
|
compiler: clang
|
||||||
|
compiler-version: 12
|
||||||
|
libclang-version: 12
|
||||||
|
pip-clang-version: "12.0.1"
|
||||||
|
ignore-errors: false
|
||||||
|
# Ubuntu 22.04: Use preinstalled GCC 9.5.0, 10.4.0, 11.3.0, 12.1.0
|
||||||
|
- os: ubuntu-22.04
|
||||||
|
compiler: gcc
|
||||||
|
compiler-version: 12
|
||||||
|
libclang-version: 14
|
||||||
|
pip-clang-version: "14.0"
|
||||||
|
ignore-errors: false
|
||||||
- os: ubuntu-22.04
|
- os: ubuntu-22.04
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
compiler-version: 11
|
compiler-version: 11
|
||||||
# Ubuntu 22.04 is in beta
|
libclang-version: 14
|
||||||
ignore-errors: true
|
pip-clang-version: "14.0"
|
||||||
- os: ubuntu-20.04
|
|
||||||
compiler: clang
|
|
||||||
compiler-version: 11
|
|
||||||
ignore-errors: false
|
ignore-errors: false
|
||||||
- os: ubuntu-20.04
|
- os: ubuntu-22.04
|
||||||
compiler: clang
|
|
||||||
compiler-version: 10
|
|
||||||
ignore-errors: false
|
|
||||||
- os: ubuntu-18.04
|
|
||||||
compiler: clang
|
|
||||||
compiler-version: "6.0"
|
|
||||||
# This compiler is supported only on a best-effort basis
|
|
||||||
ignore-errors: true
|
|
||||||
- os: ubuntu-20.04
|
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
compiler-version: 10
|
compiler-version: 10
|
||||||
|
libclang-version: 14
|
||||||
|
pip-clang-version: "14.0"
|
||||||
ignore-errors: false
|
ignore-errors: false
|
||||||
- os: ubuntu-20.04
|
- os: ubuntu-22.04
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
compiler-version: 9
|
compiler-version: 9
|
||||||
|
libclang-version: 14
|
||||||
|
pip-clang-version: "14.0"
|
||||||
ignore-errors: false
|
ignore-errors: false
|
||||||
- os: ubuntu-18.04
|
# Ubuntu 20.04
|
||||||
|
- os: ubuntu-20.04
|
||||||
|
compiler: gcc
|
||||||
|
compiler-version: 8
|
||||||
|
libclang-version: 12
|
||||||
|
pip-clang-version: "12.0.1"
|
||||||
|
ignore-errors: false
|
||||||
|
- os: ubuntu-20.04
|
||||||
compiler: gcc
|
compiler: gcc
|
||||||
compiler-version: 7
|
compiler-version: 7
|
||||||
ignore-errors: false
|
libclang-version: 12
|
||||||
|
pip-clang-version: "12.0.1"
|
||||||
|
ignore-errors: true # GCC 7 is best effort
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
continue-on-error: ${{ matrix.ignore-errors }}
|
continue-on-error: ${{ matrix.ignore-errors }}
|
||||||
|
|
||||||
@ -65,21 +87,25 @@ jobs:
|
|||||||
- name: Install/configure Clang compiler toolchain
|
- name: Install/configure Clang compiler toolchain
|
||||||
if: matrix.compiler == 'clang'
|
if: matrix.compiler == 'clang'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -qy clang-${{matrix.compiler-version}}
|
sudo apt-get install -qy \
|
||||||
|
clang-${{matrix.compiler-version}} \
|
||||||
|
libclang1-${{matrix.libclang-version}}
|
||||||
echo "CXX=clang++-${{matrix.compiler-version}}" >> $GITHUB_ENV
|
echo "CXX=clang++-${{matrix.compiler-version}}" >> $GITHUB_ENV
|
||||||
echo "CC=clang-${{matrix.compiler-version}}" >> $GITHUB_ENV
|
echo "CC=clang-${{matrix.compiler-version}}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Install/configure GCC compiler toolchain
|
- name: Install/configure GCC compiler toolchain
|
||||||
if: matrix.compiler == 'gcc'
|
if: matrix.compiler == 'gcc'
|
||||||
run: |
|
run: |
|
||||||
sudo apt-get install -qy g++-${{matrix.compiler-version}}
|
sudo apt-get install -qy \
|
||||||
|
g++-${{matrix.compiler-version}} \
|
||||||
|
libclang1-${{matrix.libclang-version}}
|
||||||
echo "CXX=g++-${{matrix.compiler-version}}" >> $GITHUB_ENV
|
echo "CXX=g++-${{matrix.compiler-version}}" >> $GITHUB_ENV
|
||||||
echo "CC=gcc-${{matrix.compiler-version}}" >> $GITHUB_ENV
|
echo "CC=gcc-${{matrix.compiler-version}}" >> $GITHUB_ENV
|
||||||
|
|
||||||
- name: Create Build Environment
|
- name: Create Build Environment
|
||||||
run: |
|
run: |
|
||||||
pip3 install absl-py clang
|
pip3 install absl-py clang==${{matrix.pip-clang-version}}
|
||||||
cmake -E make_directory $GITHUB_WORKSPACE/build
|
mkdir -p "$GITHUB_WORKSPACE/build"
|
||||||
|
|
||||||
- name: Configure CMake
|
- name: Configure CMake
|
||||||
run: |
|
run: |
|
||||||
|
Loading…
x
Reference in New Issue
Block a user