From 27b7ac0e8ae02a41f748cccd76d617bb3b9d9734 Mon Sep 17 00:00:00 2001 From: Ellie Hermaszewska Date: Fri, 6 Dec 2024 20:24:43 +0800 Subject: Emit debug info for Release builds (#5783) * Remove unnecessary warnings on windows * Correctly set debug flags on gcc * Emit debug info for Release builds * Perform LTO for relwithdebinfo builds * Release from release builds not relwithdebinfo --- .github/workflows/release-linux-glibc-2-17.yml | 12 ++++++------ .github/workflows/release.yml | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/release-linux-glibc-2-17.yml b/.github/workflows/release-linux-glibc-2-17.yml index 29f6c9bf5..4c9485d1e 100644 --- a/.github/workflows/release-linux-glibc-2-17.yml +++ b/.github/workflows/release-linux-glibc-2-17.yml @@ -27,9 +27,9 @@ jobs: cd /home/app git config --global --add safe.directory /home/app cmake --preset default --fresh -DSLANG_SLANG_LLVM_FLAVOR=DISABLE - cmake --build --preset releaseWithDebugInfo - cpack --preset releaseWithDebugInfo -G ZIP - cpack --preset releaseWithDebugInfo -G TGZ + cmake --build --preset release + cpack --preset release -G ZIP + cpack --preset release -G TGZ - name: Package Slang id: package @@ -38,15 +38,15 @@ jobs: version=${triggering_ref#v} base=$(pwd)/slang-${version}-linux-x86_64-glibc-2.17 - sudo mv "$(pwd)/build/dist-releaseWithDebugInfo/slang.zip" "${base}.zip" + sudo mv "$(pwd)/build/dist-release/slang.zip" "${base}.zip" echo "SLANG_BINARY_ARCHIVE_ZIP=${base}.zip" >> "$GITHUB_OUTPUT" - sudo mv "$(pwd)/build/dist-releaseWithDebugInfo/slang.tar.gz" "${base}.tar.gz" + sudo mv "$(pwd)/build/dist-release/slang.tar.gz" "${base}.tar.gz" echo "SLANG_BINARY_ARCHIVE_TAR=${base}.tar.gz" >> "$GITHUB_OUTPUT" - name: File check run: | - find "build/dist-releaseWithDebugInfo" -print0 ! -iname '*.md' ! -iname '*.h' -type f | xargs -0 file + find "build/dist-release" -print0 ! -iname '*.md' ! -iname '*.h' -type f | xargs -0 file - name: UploadBinary uses: softprops/action-gh-release@v1 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 1d435bed8..36e30bec0 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,7 +20,7 @@ jobs: strategy: matrix: os: [linux, macos, windows] - config: [releaseWithDebugInfo] + config: [release] platform: [x86_64, aarch64] test-category: [smoke] include: -- cgit v1.2.3