Skip to content

Commit

Permalink
ci: fixes
Browse files Browse the repository at this point in the history
* run on matrix.os
* disable old clang compilers
* enable more windows builds
  • Loading branch information
timblechmann committed Nov 1, 2023
1 parent b14bfda commit 3eab040
Showing 1 changed file with 117 additions and 93 deletions.
210 changes: 117 additions & 93 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ on:

jobs:
runner-selection:
# runs-on: ubuntu-latest
runs-on: ${{ github.repository_owner == 'boostorg' && fromJSON('[ "self-hosted", "linux", "x64", "ubuntu-latest-aws" ]') || 'ubuntu-latest' }}
runs-on: ubuntu-latest
# runs-on: ${{ github.repository_owner == 'boostorg' && fromJSON('[ "self-hosted", "linux", "x64", "ubuntu-latest-aws" ]') || 'ubuntu-latest' }}
outputs:
labelmatrix: ${{ steps.aws_hosted_runners.outputs.labelmatrix }}
steps:
Expand Down Expand Up @@ -72,76 +72,85 @@ jobs:
os: ubuntu-22.04
install: g++-11
supported: true
- toolset: clang
compiler: clang++-3.6
cxxstd: "11,14"
os: ubuntu-22.04
container: ubuntu:16.04
install: clang-3.6
supported: true
- toolset: clang
compiler: clang++-3.7
cxxstd: "11,14"
os: ubuntu-22.04
container: ubuntu:16.04
install: clang-3.7
supported: true
- toolset: clang
compiler: clang++-3.8
cxxstd: "11,14"
os: ubuntu-22.04
container: ubuntu:16.04
install: clang-3.8
supported: true
- toolset: clang
compiler: clang++-3.9
cxxstd: "11,14"
os: ubuntu-22.04
container: ubuntu:16.04
install: clang-3.9
supported: true
- toolset: clang
compiler: clang++-4.0
cxxstd: "11,14"
os: ubuntu-22.04
container: ubuntu:16.04
install: clang-4.0
supported: true
- toolset: clang
compiler: clang++-5.0
cxxstd: "11,14"
os: ubuntu-22.04
container: ubuntu:16.04
install: clang-5.0
supported: true
- toolset: clang
install: clang-6.0
compiler: clang++-6.0
cxxstd: "11,14,17"
os: ubuntu-22.04
container: ubuntu:18.04
supported: true
- toolset: clang
install: clang-7
compiler: clang++-7
cxxstd: "11,14"
- toolset: gcc-12
cxxstd: "11,14,17,20"
os: ubuntu-22.04
container: ubuntu:18.04
install: g++-12
supported: true
- toolset: clang
install: clang-8
compiler: clang++-8
cxxstd: "11,14,17"
- toolset: gcc-13
cxxstd: "11,14,17,20"
os: ubuntu-22.04
container: ubuntu:18.04
supported: true
install: g++-13
supported: true
# - toolset: clang
# compiler: clang++-3.6
# cxxstd: "11,14"
# os: ubuntu-22.04
# container: ubuntu:16.04
# install: clang-3.6
# supported: true
# - toolset: clang
# compiler: clang++-3.7
# cxxstd: "11,14"
# os: ubuntu-22.04
# container: ubuntu:16.04
# install: clang-3.7
# supported: true
# - toolset: clang
# compiler: clang++-3.8
# cxxstd: "11,14"
# os: ubuntu-22.04
# container: ubuntu:16.04
# install: clang-3.8
# supported: true
# - toolset: clang
# compiler: clang++-3.9
# cxxstd: "11,14"
# os: ubuntu-22.04
# container: ubuntu:16.04
# install: clang-3.9
# supported: true
# - toolset: clang
# compiler: clang++-4.0
# cxxstd: "11,14"
# os: ubuntu-22.04
# container: ubuntu:16.04
# install: clang-4.0
# supported: true
# - toolset: clang
# compiler: clang++-5.0
# cxxstd: "11,14"
# os: ubuntu-22.04
# container: ubuntu:16.04
# install: clang-5.0
# supported: true
# - toolset: clang
# install: clang-6.0
# compiler: clang++-6.0
# cxxstd: "11,14,17"
# os: ubuntu-22.04
# container: ubuntu:18.04
# supported: true
# - toolset: clang
# install: clang-7
# compiler: clang++-7
# cxxstd: "11,14"
# os: ubuntu-22.04
# container: ubuntu:18.04
# supported: true
# - toolset: clang
# install: clang-8
# compiler: clang++-8
# cxxstd: "11,14,17"
# os: ubuntu-22.04
# container: ubuntu:18.04
# supported: true
- toolset: clang
install: clang-9
compiler: clang++-9
cxxstd: "11,14,17,2a"
os: ubuntu-22.04
container: ubuntu:18.04
supported: "Causes segfault on GHA CI, not on official image"
- toolset: clang
install: clang-10
compiler: clang++-10
Expand Down Expand Up @@ -172,6 +181,19 @@ jobs:
cxxstd: "11,14,17,20"
os: ubuntu-22.04
supported: true
- toolset: clang
install: clang-15
compiler: clang++-15
cxxstd: "11,14,17,20"
os: ubuntu-22.04
supported: true
- toolset: clang
install: clang-16
compiler: clang++-16
cxxstd: "11,14,17,20"
os: ubuntu-22.04
supported: true

# macos
- description: macos-cxx11
toolset: clang
Expand All @@ -195,7 +217,8 @@ jobs:
supported: true

needs: [runner-selection]
runs-on: ${{ fromJSON(needs.runner-selection.outputs.labelmatrix)[matrix.os] }}
# runs-on: ${{ fromJSON(needs.runner-selection.outputs.labelmatrix)[matrix.os] }}
runs-on: ${{matrix.os}}
container: ${{ matrix.container }}
env: {B2_USE_CCACHE: 1}

Expand Down Expand Up @@ -333,41 +356,41 @@ jobs:
os: windows-2019
cxxflags: "cxxflags=-D_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING=1"
supported: true
# - description: msvc-14.3-cxx14-win32
# toolset: msvc-14.3
# cxxstd: "14"
# addrmd: 32
# os: windows-2022
# cxxflags: ""
# supported: true
# - description: msvc-14.3-cxx17-win32
# toolset: msvc-14.3
# cxxstd: "17"
# addrmd: 32
# os: windows-2022
# cxxflags: "cxxflags=-D_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING=1"
# supported: true
- description: msvc-14.3-cxx14-win32
toolset: msvc-14.3
cxxstd: "14"
addrmd: 32
os: windows-2022
cxxflags: ""
supported: true
- description: msvc-14.3-cxx17-win32
toolset: msvc-14.3
cxxstd: "17"
addrmd: 32
os: windows-2022
cxxflags: "cxxflags=-D_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING=1"
supported: true
- description: msvc-14.3-cxx20-win32
toolset: msvc-14.3
cxxstd: "20"
addrmd: 32
os: windows-2022
cxxflags: "cxxflags=-D_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING=1"
supported: true
# - description: msvc-14.3-cxx14-win64
# toolset: msvc-14.3
# cxxstd: "14"
# addrmd: 64
# os: windows-2022
# cxxflags: ""
# supported: true
# - description: msvc-14.3-cxx17-win64
# toolset: msvc-14.3
# cxxstd: "17"
# addrmd: 64
# os: windows-2022
# cxxflags: "cxxflags=-D_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING=1"
# supported: true
- description: msvc-14.3-cxx14-win64
toolset: msvc-14.3
cxxstd: "14"
addrmd: 64
os: windows-2022
cxxflags: ""
supported: true
- description: msvc-14.3-cxx17-win64
toolset: msvc-14.3
cxxstd: "17"
addrmd: 64
os: windows-2022
cxxflags: "cxxflags=-D_SILENCE_CXX17_ITERATOR_BASE_CLASS_DEPRECATION_WARNING=1"
supported: true
- description: msvc-14.3-cxx20-win64
toolset: msvc-14.3
cxxstd: "20"
Expand All @@ -383,7 +406,8 @@ jobs:
supported: "Too many unknowns to get this compiler working - gcc-8.1"

needs: [runner-selection]
runs-on: ${{ fromJSON(needs.runner-selection.outputs.labelmatrix)[matrix.os] }}
# runs-on: ${{ fromJSON(needs.runner-selection.outputs.labelmatrix)[matrix.os] }}
runs-on: ${{matrix.os}}

steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 3eab040

Please sign in to comment.