Skip to content

Commit bf9ac6d

Browse files
committed
Updated CI
1 parent 9722480 commit bf9ac6d

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: build
22
on: [push, pull_request]
33
jobs:
44
build:
5-
runs-on: ubuntu-latest
5+
runs-on: ubuntu-24.04
66
steps:
77
- uses: actions/checkout@v4
88
- uses: ankane/setup-postgres@v1
@@ -21,18 +21,21 @@ jobs:
2121
CXXFLAGS=-std=c++17 ./configure
2222
make
2323
sudo make install
24+
2425
- run: g++ -std=c++17 -Wall -Wextra -Werror -o test/pqxx test/pqxx_test.cpp -lpqxx -lpq
2526
- run: test/pqxx
2627

27-
- if: ${{ startsWith(matrix.os, 'ubuntu') }}
28-
run: |
28+
- run: g++ -std=c++20 -Wall -Wextra -Werror -o test/pqxx test/pqxx_test.cpp -lpqxx -lpq
29+
- run: test/pqxx
30+
31+
- run: g++ -std=c++23 -Wall -Wextra -Werror -o test/pqxx test/pqxx_test.cpp -lpqxx -lpq
32+
- run: test/pqxx
33+
34+
- run: |
2935
sudo apt-get update
3036
sudo apt-get install valgrind
3137
valgrind --leak-check=yes test/pqxx
3238
33-
- if: ${{ startsWith(matrix.os, 'macos') }}
34-
run: /opt/homebrew/opt/llvm@18/bin/scan-build --status-bugs g++ -std=c++17 -o test/pqxx test/pqxx_test.cpp -lpqxx -lpq
35-
3639
# test install
3740
- run: cmake -S . -B build
3841
- run: cmake --build build

0 commit comments

Comments
 (0)