From 1d4b0411c0ae10cc6321836a9a33bfb97f73d155 Mon Sep 17 00:00:00 2001 From: sandreas <2050604+sandreas@users.noreply.github.com> Date: Fri, 17 Feb 2023 20:13:15 +0100 Subject: [PATCH] switched release mode for macOS-arm64 to Debug to check, if this results in a binary that can be actually used (#6) --- .github/workflows/release.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5ef9e48..92f36a2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,11 +75,17 @@ jobs: run: | release_name="${{ env.PROJECT_NAME }}-${{ steps.version.outputs.version-without-v }}-${{ matrix.target }}" release_notes="$(sed 's/%/%25/g;s/\r/%0D/g;' ${{ env.PROJECT_NAME }}/doc/release/release-notes-${{ steps.version.outputs.version }}.md | sed ':a;N;$!ba;s/\n/%0A/g')" + release_config="Release" + echo "::set-output name=release_notes::$release_notes" sed -i.bak "s/net6.0<\/TargetFramework>/${{ env.DOTNET_FRAMEWORK }}<\/TargetFramework>/g" ${{ env.PROJECT_PATH }} - dotnet publish ${{ env.PROJECT_PATH }} --framework ${{ env.DOTNET_FRAMEWORK }} --runtime "${{ matrix.target }}" -c Release -p:PublishSingleFile=true --self-contained true -p:PublishReadyToRun=true -p:PublishTrimmed=true -o "$release_name" + if [ "${{ matrix.target }}" == "osx-arm64" ]; then + release_config="Debug" + fi + + dotnet publish ${{ env.PROJECT_PATH }} --framework ${{ env.DOTNET_FRAMEWORK }} --runtime "${{ matrix.target }}" -c "$release_config" -p:PublishSingleFile=true --self-contained true -p:PublishReadyToRun=true -p:PublishTrimmed=true -o "$release_name" if [ "${{ matrix.target }}" == "win-x64" ]; then 7z a -tzip "${release_name}.zip" "./${release_name}/tone.exe"