Browse Source

Add self-contained zip creation

pull/2642/head
Christoph Wille 4 years ago
parent
commit
2e706df7d4
  1. 24
      .github/workflows/build-ilspy.yml

24
.github/workflows/build-ilspy.yml

@ -64,10 +64,18 @@ jobs: @@ -64,10 +64,18 @@ jobs:
- name: Style - tab check
run: python BuildTools\tidy.py
# TODO: Replace with dotnet publish & zip
- name: Zip ILSpy Release
- name: Zip ILSpy (framework-dependent)
run: 7z a -tzip $env:StagingDirectory\ILSpy_binaries.zip .\ILSpy\bin\${{ matrix.configuration }}\net6.0-windows\*.dll .\ILSpy\bin\${{ matrix.configuration }}\net6.0-windows\*.exe .\ILSpy\bin\${{ matrix.configuration }}\net6.0-windows\*.config .\ILSpy\bin\${{ matrix.configuration }}\net6.0-windows\*\ILSpy.resources.dll .\ILSpy\bin\${{ matrix.configuration }}\net6.0-windows\*\ILSpy.ReadyToRun.Plugin.resources.dll
- name: Zip ILSpy Release (self-contained win-x64)
if: matrix.configuration == 'release'
shell: pwsh
run: |
dotnet publish ./ILSpy/ILSpy.csproj -c Release --no-restore --self-contained -r win-x64
dotnet publish ./ILSpy.ReadyToRun/ILSpy.ReadyToRun.csproj -c Release --no-restore --self-contained -r win-x64
dotnet publish ./ILSpy.BamlDecompiler/ILSpy.BamlDecompiler.csproj -c Release --no-restore --self-contained -r win-x64
7z a -tzip $env:StagingDirectory\ILSpy_selfcontained_x64.zip .\ILSpy\bin\Release\net6.0-windows\win-x64\publish\*
# https://github.com/actions/upload-artifact
- name: Upload VSIX (VS 2019) release build artifacts
if: matrix.configuration == 'release'
@ -98,13 +106,21 @@ jobs: @@ -98,13 +106,21 @@ jobs:
run: |
dotnet nuget push "ICSharpCode.Decompiler\bin\Release\ICSharpCode.Decompiler*.nupkg" --api-key ${{ secrets.GITHUB_TOKEN }} --source https://nuget.pkg.github.com/${{ github.repository_owner }}
- name: Upload zip release build artifacts
- name: Upload zip binaries build artifacts
uses: actions/upload-artifact@v2
with:
name: ILSpy ${{ steps.version.outputs.ILSPY_VERSION_NUMBER }} (${{ matrix.configuration }})
path: ${{ env.StagingDirectory }}\ILSpy_binaries.zip
if-no-files-found: error
- name: Upload self-contained zip build artifacts (Release-only)
if: matrix.configuration == 'release'
uses: actions/upload-artifact@v2
with:
name: ILSpy self-contained x64 ${{ steps.version.outputs.ILSPY_VERSION_NUMBER }} (${{ matrix.configuration }})
path: ${{ env.StagingDirectory }}\ILSpy_selfcontained_x64.zip
if-no-files-found: error
- name: Upload installer artifact
if: matrix.configuration == 'release'
uses: actions/upload-artifact@v2

Loading…
Cancel
Save