diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 5bfdb903..039ad8cf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,7 +51,7 @@ jobs: build_args: --no-self-contained suffix: "" - self-contained: self-contained - build_args: --self-contained -p:PublishTrimmed=true -p:TrimMode=partial + build_args: --self-contained -p:PublishTrimmed=true -p:TrimMode=partial -p:EnableCompressionInSingleFile=true suffix: "-self-contained" runs-on: ${{ matrix.os }} @@ -80,7 +80,7 @@ jobs: run: dotnet test src/OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }} - name: Publish with dotnet - run: dotnet publish src/OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }} --framework net8.0 --runtime ${{ matrix.target }} ${{ matrix.build_args }} -p:PublishSingleFile=true -p:EnableCompressionInSingleFile=true --output ./OpenDirectoryDownloader-${{ steps.get_version.outputs.VERSION }}-${{ matrix.target }}${{ matrix.suffix }} + run: dotnet publish src/OpenDirectoryDownloader --configuration Release -p:Version=${{ steps.get_version.outputs.VERSION }} --framework net8.0 --runtime ${{ matrix.target }} ${{ matrix.build_args }} -p:PublishSingleFile=true --output ./OpenDirectoryDownloader-${{ steps.get_version.outputs.VERSION }}-${{ matrix.target }}${{ matrix.suffix }} - name: Set executable bit (linux only) if: ${{ matrix.os == 'ubuntu-latest' }}