Skip to content

Commit a227ec7

Browse files
Pierre-Luc Gagnéclaude
andcommitted
ci: use full CI workflow for release validation
Replace the release workflow's standalone unit-tests job with a call to the CI workflow, so releases are gated on the same GCC, Clang, MSVC, and package-consumer-smoke checks that run on main. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 6428961 commit a227ec7

2 files changed

Lines changed: 5 additions & 38 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
- ".github/badges/**"
88
pull_request:
99
branches: [main]
10+
workflow_call:
1011
workflow_dispatch:
1112

1213
jobs:

.github/workflows/release.yml

Lines changed: 4 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -59,48 +59,14 @@ jobs:
5959
exit 1
6060
fi
6161
62-
unit-tests:
63-
name: Unit tests (GCC)
62+
ci:
63+
name: CI
6464
needs: validate-version
65-
runs-on: ubuntu-latest
66-
67-
steps:
68-
- uses: actions/checkout@v6
69-
70-
- name: Install dependencies
71-
run: |
72-
sudo apt-get update -q
73-
sudo apt-get install -y software-properties-common ca-certificates gpg wget
74-
wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc \
75-
| gpg --dearmor \
76-
| sudo tee /usr/share/keyrings/kitware-archive-keyring.gpg > /dev/null
77-
echo 'deb [signed-by=/usr/share/keyrings/kitware-archive-keyring.gpg] https://apt.kitware.com/ubuntu/ noble main' \
78-
| sudo tee /etc/apt/sources.list.d/kitware.list
79-
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y
80-
sudo apt-get update -q
81-
sudo apt-get install -y cmake ninja-build g++-15 gcc-15 \
82-
libmysqlclient-dev pkg-config
83-
env:
84-
DEBIAN_FRONTEND: noninteractive
85-
86-
- name: Configure
87-
run: |
88-
cmake --preset release \
89-
-DSKIP_DOCKER_MANAGEMENT=ON \
90-
-DBUILD_INTEGRATION_TESTS=OFF
91-
env:
92-
CXX: g++-15
93-
CC: gcc-15
94-
95-
- name: Build
96-
run: cmake --build --preset release -j4
97-
98-
- name: Unit tests
99-
run: ctest --preset release -R tests_unit_ds_mysql --output-on-failure
65+
uses: ./.github/workflows/ci.yml
10066

10167
release:
10268
name: Create GitHub release
103-
needs: [validate-version, unit-tests]
69+
needs: [validate-version, ci]
10470
runs-on: ubuntu-latest
10571

10672
steps:

0 commit comments

Comments
 (0)