Skip to content

Commit

Permalink
[Test-linux] Improve and fix Ubuntu GAs
Browse files Browse the repository at this point in the history
  • Loading branch information
rikyoz committed May 16, 2024
1 parent dfe2c7c commit ff86c69
Showing 1 changed file with 38 additions and 2 deletions.
40 changes: 38 additions & 2 deletions .github/workflows/test_ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ on:

jobs:
build_linux:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
if: |
!contains(github.event.head_commit.message, '[test-windows]')
&& !contains(github.event.head_commit.message, '[test-macos]')
Expand All @@ -22,8 +22,9 @@ jobs:
fail-fast: false

matrix:
os: [ubuntu-24.04, ubuntu-22.04]
build_type: [Debug, Release]
c_compiler: [gcc-9, gcc-10, gcc-11, gcc-12, gcc-13, clang-13, clang-14, clang-15]
c_compiler: [gcc-9, gcc-10, gcc-11, gcc-12, gcc-13, gcc-14, clang-13, clang-14, clang-15, clang-16]
bit7z_auto_format: [OFF, ON]
bit7z_regex_matching: [OFF, ON]
bit7z_link_libcpp: [OFF, ON]
Expand All @@ -40,12 +41,16 @@ jobs:
cpp_compiler: g++-12
- c_compiler: gcc-13
cpp_compiler: g++-13
- c_compiler: gcc-14
cpp_compiler: g++-14
- c_compiler: clang-13
cpp_compiler: clang++-13
- c_compiler: clang-14
cpp_compiler: clang++-14
- c_compiler: clang-15
cpp_compiler: clang++-15
- c_compiler: clang-16
cpp_compiler: clang++-16
exclude:
- c_compiler: gcc-9
bit7z_link_libcpp: ON
Expand All @@ -57,6 +62,28 @@ jobs:
bit7z_link_libcpp: ON
- c_compiler: gcc-13
bit7z_link_libcpp: ON
- c_compiler: gcc-14
bit7z_link_libcpp: ON
- c_compiler: gcc-9
os: ubuntu-24.04
- c_compiler: gcc-10
os: ubuntu-24.04
- c_compiler: gcc-11
os: ubuntu-24.04
- c_compiler: gcc-12
os: ubuntu-24.04
- c_compiler: clang-13
os: ubuntu-24.04
- c_compiler: clang-14
os: ubuntu-24.04
- c_compiler: clang-15
os: ubuntu-24.04
- c_compiler: gcc-13
os: ubuntu-22.04
- c_compiler: gcc-14
os: ubuntu-22.04
- c_compiler: clang-16
os: ubuntu-22.04
- c_compiler: gcc-9
bit7z_7zip_version: 16.02
- c_compiler: gcc-10
Expand All @@ -65,10 +92,14 @@ jobs:
bit7z_7zip_version: 16.02
- c_compiler: gcc-12
bit7z_7zip_version: 16.02
- c_compiler: gcc-13
bit7z_7zip_version: 16.02
- c_compiler: clang-13
bit7z_7zip_version: 16.02
- c_compiler: clang-14
bit7z_7zip_version: 16.02
- c_compiler: clang-15
bit7z_7zip_version: 16.02
- bit7z_7zip_version: 16.02
bit7z_build_for_p7zip: OFF
- bit7z_7zip_version: 23.01
Expand All @@ -91,6 +122,11 @@ jobs:
shell: bash
if: ${{ matrix.bit7z_link_libcpp == 'ON' && contains(matrix.c_compiler, 'clang-15') }}
run: sudo apt-get purge libc++-14-dev libc++abi-14-dev -y && sudo apt-get install libc++-15-dev libc++abi-15-dev -y

- name: Fix missing libc++ and libc++abi packages for clang-16 compiler
shell: bash
if: ${{ matrix.bit7z_link_libcpp == 'ON' && contains(matrix.c_compiler, 'clang-16') }}
run: sudo apt-get install libc++-16-dev libc++abi-16-dev -y

- name: Building and testing bit7z
uses: ./.github/actions/test_action
Expand Down

0 comments on commit ff86c69

Please sign in to comment.