Build release artifacts with RelWithDebInfo
This commit is contained in:
1 file changed
+9
-5
@@ -45,16 +45,17 @@ jobs:
|
|||||||
|
|
||||||
- name: Configure
|
- name: Configure
|
||||||
run: |
|
run: |
|
||||||
cmake -S . -B build-release -G Ninja \
|
cmake -S . -B build-relwithdebinfo -G Ninja \
|
||||||
-DCMAKE_BUILD_TYPE=Release \
|
-DCMAKE_BUILD_TYPE=RelWithDebInfo \
|
||||||
-DBUILD_SHARED_LIBS=ON \
|
-DBUILD_SHARED_LIBS=ON \
|
||||||
-DVOID_ENABLE_TESTING=ON \
|
-DVOID_ENABLE_TESTING=ON \
|
||||||
-DVOID_WARNINGS_AS_ERRORS=ON
|
-DVOID_WARNINGS_AS_ERRORS=ON
|
||||||
|
|
||||||
- name: Build and test
|
- name: Build and test
|
||||||
run: |
|
run: |
|
||||||
cmake --build build-release --parallel
|
cmake --build build-relwithdebinfo --config RelWithDebInfo --parallel
|
||||||
ctest --test-dir build-release --output-on-failure
|
ctest --test-dir build-relwithdebinfo \
|
||||||
|
--build-config RelWithDebInfo --output-on-failure
|
||||||
|
|
||||||
- name: Install and package
|
- name: Install and package
|
||||||
shell: bash
|
shell: bash
|
||||||
@@ -63,8 +64,11 @@ jobs:
|
|||||||
version="${GITHUB_REF_NAME#v}"
|
version="${GITHUB_REF_NAME#v}"
|
||||||
package="voidlibrary-${version}-linux-x86_64"
|
package="voidlibrary-${version}-linux-x86_64"
|
||||||
epoch="$(git show -s --format=%ct HEAD)"
|
epoch="$(git show -s --format=%ct HEAD)"
|
||||||
cmake --install build-release \
|
cmake --install build-relwithdebinfo \
|
||||||
|
--config RelWithDebInfo \
|
||||||
--prefix "$PWD/stage/$package"
|
--prefix "$PWD/stage/$package"
|
||||||
|
python3 .release-tools/scripts/verify-relwithdebinfo.py \
|
||||||
|
--root "$PWD/stage/$package"
|
||||||
mkdir -p dist
|
mkdir -p dist
|
||||||
SOURCE_DATE_EPOCH="$epoch" \
|
SOURCE_DATE_EPOCH="$epoch" \
|
||||||
tar --sort=name --mtime="@$epoch" \
|
tar --sort=name --mtime="@$epoch" \
|
||||||
|
|||||||
Reference in new issue
Block a user