diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 2234906..0524359 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -45,16 +45,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_ENABLE_TESTING=ON \ -DVOID_WARNINGS_AS_ERRORS=ON - 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 @@ -63,8 +64,11 @@ jobs: version="${GITHUB_REF_NAME#v}" package="voidlibrary-${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" \