From bb506dbbcd47664a5ca94482a644150c7fdf205f Mon Sep 17 00:00:00 2001 From: Segev Finer Date: Tue, 14 Nov 2023 02:41:56 +0200 Subject: [PATCH] Try using split-debuginfo for release builds --- .github/workflows/release.yml | 5 +++-- Cargo.toml | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c76834d..a9874be 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -4,7 +4,7 @@ on: workflow_dispatch: {} push: tags: - - v[0-9].* + - v[0-9]* jobs: release: @@ -48,6 +48,7 @@ jobs: staging="keepawake-${{ github.head_ref || github.ref_name }}-${{ matrix.target }}" mkdir $staging + ls -R target/${{ matrix.target }}/release/ cp target/${{ matrix.target }}/release/keepawake@(|.exe) $staging/ cp README.md CHANGELOG.md LICENSE $staging/ @@ -61,7 +62,7 @@ jobs: - name: Release uses: softprops/action-gh-release@v1 - if: startsWith(github.ref, 'refs/tags/') + if: github.ref_type == 'tag' with: draft: true files: ${{ steps.package.outputs.ASSET }} diff --git a/Cargo.toml b/Cargo.toml index 9b9f69c..37ff0b6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -24,8 +24,10 @@ bin = [ capi = [] [profile.release] -strip = true lto = "thin" +strip = true +debug = true +split-debuginfo = "packed" [[bin]] name = "keepawake"