Skip to content

Commit bdfc1b9

Browse files
committed
CI: set API_VERSION before building
1 parent cfd476e commit bdfc1b9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.cds/gridinit-build.pip.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,8 @@ jobs:
4242
cat $0
4343
set -ex
4444
export CC=clang
45-
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_VERBOSE_MAKEFILE=TRUE -DCMAKE_INSTALL_PREFIX=/usr .
45+
API_VERSION=$(git describe --tags)
46+
cmake -DAPI_VERSION="$API_VERSION" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_VERBOSE_MAKEFILE=TRUE -DCMAKE_INSTALL_PREFIX=/usr .
4647
make -j 8
4748
make install
4849
- name: Test gridinit

debian/rules

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ include /usr/share/dpkg/default.mk
1010
override_dh_auto_configure:
1111
for i in debian/patches/*.patch; do patch -f -p1 < $$i; done
1212
dh_auto_configure -- \
13+
-DAPI_VERSION=$$VERSION \
1314
-DPREFIX=/usr \
1415
-DLD_LIBDIR=lib \
1516
-DCMAKE_BUILD_TYPE=RelWithDebInfo \

0 commit comments

Comments
 (0)