Upgrade Avalonia v11 #120
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build AvaloniaILSpy | |
on: | |
push: | |
branches: '**' | |
pull_request: | |
branches: [ master ] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
platform: [ubuntu-latest, macos-latest, windows-latest] | |
runs-on: ${{ matrix.platform }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 6.0.x | |
- name: Run the Cake script | |
uses: cake-build/cake-action@v1 | |
with: | |
script-path: build.cake | |
- name: Zip Linux x64 | |
if: matrix.platform == 'ubuntu-latest' | |
run: 7z a -tzip artifacts/ILSpy-linux-x64-Release.zip artifacts/linux-x64/* | |
- name: Zip Linux arm64 | |
if: matrix.platform == 'ubuntu-latest' | |
run: 7z a -tzip artifacts/ILSpy-linux-arm64-Release.zip artifacts/linux-arm64/* | |
- name: Create DMG for MacOS x64 | |
if: matrix.platform == 'macos-latest' | |
run: | | |
brew install create-dmg | |
create-dmg \ | |
--volname "ILSpy Installer" \ | |
--volicon "artifacts/osx-x64/ILSpy.app/Contents/Resources/ILSpy.icns" \ | |
--window-pos 200 120 \ | |
--window-size 800 400 \ | |
--icon-size 100 \ | |
--icon "ILSpy.app" 200 190 \ | |
--hide-extension "ILSpy.app" \ | |
--app-drop-link 600 185 \ | |
"ILSpy-macos-x64-Release.dmg" \ | |
"artifacts/osx-x64/" | |
- name: Create DMG for arm64 | |
if: matrix.platform == 'macos-latest' | |
run: | | |
brew install create-dmg | |
create-dmg \ | |
--volname "ILSpy Installer" \ | |
--volicon "artifacts/osx-arm64/ILSpy.app/Contents/Resources/ILSpy.icns" \ | |
--window-pos 200 120 \ | |
--window-size 800 400 \ | |
--icon-size 100 \ | |
--icon "ILSpy.app" 200 190 \ | |
--hide-extension "ILSpy.app" \ | |
--app-drop-link 600 185 \ | |
"ILSpy-macos-arm64-Release.dmg" \ | |
"artifacts/osx-arm64/" | |
- name: Zip Windows x64 | |
if: matrix.platform == 'windows-latest' | |
run: 7z a -tzip artifacts\ILSpy-win-x64-Release.zip artifacts\win-x64\* | |
- name: Zip Windows arm64 | |
if: matrix.platform == 'windows-latest' | |
run: 7z a -tzip artifacts\ILSpy-win-arm64-Release.zip artifacts\win-arm64\* | |
- name: Upload Linux x64 artifacts | |
if: matrix.platform == 'ubuntu-latest' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Linux x64 Release | |
path: artifacts/ILSpy-linux-x64-Release.zip | |
if-no-files-found: error | |
- name: Upload Linux arm64 artifacts | |
if: matrix.platform == 'ubuntu-latest' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Linux arm64 Release | |
path: artifacts/ILSpy-linux-arm64-Release.zip | |
if-no-files-found: error | |
- name: Upload macOS x64 artifacts | |
if: matrix.platform == 'macos-latest' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: macOS x64 Release | |
path: ILSpy-macos-x64-Release.dmg | |
if-no-files-found: error | |
- name: Upload macOS arm64 artifacts | |
if: matrix.platform == 'macos-latest' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: macOS arm64 Release | |
path: ILSpy-macos-arm64-Release.dmg | |
if-no-files-found: error | |
- name: Upload Windows x64 artifacts | |
if: matrix.platform == 'windows-latest' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Windows x64 Release | |
path: artifacts/ILSpy-win-x64-Release.zip | |
if-no-files-found: error | |
- name: Upload Windows arm64 artifacts | |
if: matrix.platform == 'windows-latest' | |
uses: actions/upload-artifact@v2 | |
with: | |
name: Windows arm64 Release | |
path: artifacts/ILSpy-win-arm64-Release.zip | |
if-no-files-found: error | |