Skip to content

Commit

Permalink
Update compiler matrix for std::format support
Browse files Browse the repository at this point in the history
  • Loading branch information
d-frey committed Nov 15, 2024
1 parent 6e5047c commit 525e738
Show file tree
Hide file tree
Showing 6 changed files with 10 additions and 187 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/clang-analyze.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
clang-analyze:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/clang-tidy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ on:

jobs:
clang-tidy:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04

steps:
- uses: actions/checkout@v4
Expand Down
158 changes: 4 additions & 154 deletions .github/workflows/linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,117 +63,14 @@ jobs:
- working-directory: build/
run: ctest --output-on-failure

linux:
strategy:
fail-fast: false
matrix:
compiler:
- g++-10
- g++-11
- g++-12
- clang++-13
- clang++-14
- clang++-15
build_type: [Debug, Release]

runs-on: ubuntu-22.04

services:
postgres:
image: postgres:latest
env:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
CXX: ${{ matrix.compiler }}
TAOPQ_TEST_DATABASE: host=localhost dbname=postgres user=postgres password=postgres

steps:
- uses: actions/checkout@v4

- run: sudo apt-get update -yq

- run: sudo apt-get install -yq libpq-dev

- run: cmake -E make_directory build

- working-directory: build/
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}

- working-directory: build/
run: cmake --build .

- working-directory: build/
run: ctest --output-on-failure

linux-old:
strategy:
fail-fast: false
matrix:
compiler:
- clang++-10
- clang++-11
- clang++-12
build_type: [Debug, Release]

runs-on: ubuntu-20.04

services:
postgres:
image: postgres:latest
env:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
CXX: ${{ matrix.compiler }}
TAOPQ_TEST_DATABASE: host=localhost dbname=postgres user=postgres password=postgres

steps:
- uses: actions/checkout@v4

- run: sudo apt-get update -yq

- run: sudo apt-get install -yq libpq-dev postgresql-server-dev-all ${{ matrix.compiler }}

- run: cmake -E make_directory build

- working-directory: build/
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }}

- working-directory: build/
run: cmake --build .

- working-directory: build/
run: ctest --output-on-failure

linux-gcc-extra:
strategy:
fail-fast: false
matrix:
flags: ["-D_GLIBCXX_USE_CXX11_ABI=0"]
flags: ["-stdlib=libc++","-D_GLIBCXX_USE_CXX11_ABI=0"]
build_type: [Debug, Release]

runs-on: ubuntu-latest
runs-on: ubuntu-24.04

services:
postgres:
Expand All @@ -200,7 +97,7 @@ jobs:

- run: sudo apt-get update -yq

- run: sudo apt-get install -yq libpq-dev
- run: sudo apt-get install -yq libpq-dev libc++-dev

- run: cmake -E make_directory build

Expand All @@ -220,53 +117,6 @@ jobs:
flags: ["-fms-extensions"]
build_type: [Debug, Release]

runs-on: ubuntu-latest

services:
postgres:
image: postgres:latest
env:
POSTGRES_DB: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
ports:
- 5432:5432
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
CXX: clang++
TAOPQ_TEST_DATABASE: host=localhost dbname=postgres user=postgres password=postgres

steps:
- uses: actions/checkout@v4

- run: sudo apt-get update -yq

- run: sudo apt-get install -yq libpq-dev

- run: cmake -E make_directory build

- working-directory: build/
run: cmake $GITHUB_WORKSPACE -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DCMAKE_CXX_FLAGS="${{ matrix.flags }}"

- working-directory: build/
run: cmake --build .

- working-directory: build/
run: ctest --output-on-failure

linux-libcpp:
strategy:
fail-fast: false
matrix:
flags: ["-stdlib=libc++"]
build_type: [Debug, Release]

runs-on: ubuntu-24.04

services:
Expand Down Expand Up @@ -294,7 +144,7 @@ jobs:

- run: sudo apt-get update -yq

- run: sudo apt-get install -yq libc++-dev libpq-dev
- run: sudo apt-get install -yq libpq-dev

- run: cmake -E make_directory build

Expand Down
27 changes: 0 additions & 27 deletions .github/workflows/macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,3 @@ jobs:

- working-directory: build/
run: ctest --output-on-failure

xcode-macos-13:
strategy:
fail-fast: false
matrix:
xcode: ['13', '14', '15']
build_type: [Debug, Release]

runs-on: macos-13

env:
TAOPQ_TEST_DATABASE: host=localhost dbname=postgres user=postgres password=postgres

steps:
- uses: actions/checkout@v4
- uses: ikalnytskyi/action-setup-postgres@v6

- run: cmake -E make_directory build

- working-directory: build/
run: cmake $GITHUB_WORKSPACE

- working-directory: build/
run: cmake --build . --config ${{ matrix.build_type }}

- working-directory: build/
run: ctest --output-on-failure
2 changes: 1 addition & 1 deletion .github/workflows/sanitizer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
cxx: [g++, clang++]
sanitizer: [address, undefined]

runs-on: ubuntu-latest
runs-on: ubuntu-24.04

services:
postgres:
Expand Down
6 changes: 3 additions & 3 deletions doc/Requirements.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
* We support:
* [Visual Studio➚](https://en.wikipedia.org/wiki/Microsoft_Visual_Studio) version 2022 or newer.
* [Visual Studio➚](https://en.wikipedia.org/wiki/Microsoft_Visual_Studio) version 2019 with Clang or newer.
* [Xcode➚](https://en.wikipedia.org/wiki/Xcode) version 13 or newer.
* [GCC➚](https://gcc.gnu.org/) version 10 or newer.
* [Clang➚](https://clang.llvm.org/) version 10 or newer.
* [Xcode➚](https://en.wikipedia.org/wiki/Xcode) version 15 or newer.
* [GCC➚](https://gcc.gnu.org/) version 13 or newer.
* [Clang➚](https://clang.llvm.org/) version 16 or newer.
* Other compilers might work.

## Language Requirements
Expand Down

0 comments on commit 525e738

Please sign in to comment.