Skip to content

Commit

Permalink
CI: set API_VERSION before building
Browse files Browse the repository at this point in the history
  • Loading branch information
fvennetier committed Jan 12, 2021
1 parent cfd476e commit bdfc1b9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .cds/gridinit-build.pip.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ jobs:
cat $0
set -ex
export CC=clang
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_VERBOSE_MAKEFILE=TRUE -DCMAKE_INSTALL_PREFIX=/usr .
API_VERSION=$(git describe --tags)
cmake -DAPI_VERSION="$API_VERSION" -DCMAKE_BUILD_TYPE=RelWithDebInfo -DCMAKE_VERBOSE_MAKEFILE=TRUE -DCMAKE_INSTALL_PREFIX=/usr .
make -j 8
make install
- name: Test gridinit
Expand Down
1 change: 1 addition & 0 deletions debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ include /usr/share/dpkg/default.mk
override_dh_auto_configure:
for i in debian/patches/*.patch; do patch -f -p1 < $$i; done
dh_auto_configure -- \
-DAPI_VERSION=$$VERSION \
-DPREFIX=/usr \
-DLD_LIBDIR=lib \
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
Expand Down

0 comments on commit bdfc1b9

Please sign in to comment.