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