Skip to content

Commit eb8ae35

Browse files
Streamlined build pipelines; build on every push (#438)
1 parent b6446a8 commit eb8ae35

File tree

4 files changed

+25
-92
lines changed

4 files changed

+25
-92
lines changed

.github/workflows/linux-cxx23.yaml

Lines changed: 0 additions & 84 deletions
This file was deleted.

.github/workflows/linux-cxx20.yaml renamed to .github/workflows/linux.yaml

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: linux-cxx20
1+
name: linux
22

3-
on: [ pull_request, workflow_dispatch ]
3+
on: [ push ]
44

55
env:
66
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"
@@ -13,16 +13,33 @@ jobs:
1313
include:
1414
- compiler: llvm
1515
compiler-version: 16
16+
cxx: 20
17+
- compiler: llvm
18+
compiler-version: 17
19+
cxx: 20
1620
- compiler: llvm
1721
compiler-version: 18
22+
cxx: 20
1823
- compiler: gcc
1924
compiler-version: 11
2025
additional-dep: "g++-11"
26+
cxx: 20
2127
- compiler: gcc
2228
compiler-version: 12
29+
cxx: 20
30+
- compiler: gcc
31+
compiler-version: 13
32+
cxx: 20
33+
- compiler: gcc
34+
compiler-version: 14
35+
cxx: 20
36+
- compiler: gcc
37+
compiler-version: 13
38+
cxx: 23
2339
- compiler: gcc
2440
compiler-version: 14
25-
name: "${{ github.job }} (${{ matrix.compiler }}-${{ matrix.compiler-version }})"
41+
cxx: 23
42+
name: "${{ github.job }} (C++${{ matrix.cxx }}-${{ matrix.compiler }}-${{ matrix.compiler-version }})"
2643
runs-on: ubuntu-24.04
2744
steps:
2845
- name: Checkout
@@ -66,7 +83,7 @@ jobs:
6683
sudo ln -s $(which ccache) /usr/local/bin/$CC
6784
sudo ln -s $(which ccache) /usr/local/bin/$CXX
6885
$CXX --version
69-
cmake -S . -B build -G Ninja -DCMAKE_CXX_STANDARD=20 -DREFLECTCPP_BUILD_TESTS=ON -DREFLECTCPP_BUILD_BENCHMARKS=ON -DREFLECTCPP_BSON=ON -DREFLECTCPP_CAPNPROTO=ON -DREFLECTCPP_CBOR=ON -DREFLECTCPP_FLEXBUFFERS=ON -DREFLECTCPP_MSGPACK=ON -DREFLECTCPP_TOML=ON -DREFLECTCPP_XML=ON -DREFLECTCPP_YAML=ON -DCMAKE_BUILD_TYPE=Release
86+
cmake -S . -B build -G Ninja -DCMAKE_CXX_STANDARD=${{ matrix.cxx }} -DREFLECTCPP_BUILD_TESTS=ON -DREFLECTCPP_BUILD_BENCHMARKS=ON -DREFLECTCPP_BSON=ON -DREFLECTCPP_CAPNPROTO=ON -DREFLECTCPP_CBOR=ON -DREFLECTCPP_FLEXBUFFERS=ON -DREFLECTCPP_MSGPACK=ON -DREFLECTCPP_TOML=ON -DREFLECTCPP_XML=ON -DREFLECTCPP_YAML=ON -DCMAKE_BUILD_TYPE=Release
7087
cmake --build build
7188
- name: Run tests
7289
run: |

.github/workflows/macos-cxx20.yaml renamed to .github/workflows/macos.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: macos-cxx20
1+
name: macos
22

3-
on: [ pull_request, workflow_dispatch ]
3+
on: [ push ]
44

55
env:
66
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"

.github/workflows/windows-cxx20.yaml renamed to .github/workflows/windows.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
name: windows-cxx20
1+
name: windows
22

3-
on: [ pull_request, workflow_dispatch ]
3+
on: [ push ]
44

55
env:
66
VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite"

0 commit comments

Comments
 (0)