Skip to content

Bump Lib.Harmony from 2.2.2 to 2.3.0 #190

Bump Lib.Harmony from 2.2.2 to 2.3.0

Bump Lib.Harmony from 2.2.2 to 2.3.0 #190

Workflow file for this run

name: GitHub CI
on:
push:
paths-ignore:
- '**.md'
- '**.yml'
branches:
- master
pull_request:
branches:
- master
release:
types:
- released
workflow_dispatch:
env:
CI_REQ_DOTNET_SDK_VER: 6.0.x
jobs:
build:
name: Build NETReactorSlayer
runs-on: windows-latest
defaults:
run:
shell: pwsh
strategy:
matrix:
platform: [netframework, net6.0-win32, net6.0-win64, net6.0-win-arm, net6.0-win-arm64, net6.0-linux64, net6.0-linux-arm, net6.0-linux-arm64, net6.0-osx64, netcoreapp3.1-win32, netcoreapp3.1-win64, netcoreapp3.1-win-arm, netcoreapp3.1-win-arm64, netcoreapp3.1-linux64, netcoreapp3.1-linux-arm, netcoreapp3.1-linux-arm64, netcoreapp3.1-osx64]
include:
- platform: netframework
build-dir: net48
- platform: net6.0-win32
build-dir: net6.0\win-x86\publish
- platform: net6.0-win64
build-dir: net6.0\win-x64\publish
- platform: net6.0-win-arm
build-dir: net6.0\win-arm\publish
- platform: net6.0-win-arm64
build-dir: net6.0\win-arm64\publish
- platform: net6.0-linux64
build-dir: net6.0\linux-x64\publish
- platform: net6.0-linux-arm
build-dir: net6.0\linux-arm\publish
- platform: net6.0-linux-arm64
build-dir: net6.0\linux-arm64\publish
- platform: net6.0-osx64
build-dir: net6.0\osx-x64\publish
- platform: netcoreapp3.1-win32
build-dir: netcoreapp3.1\win-x86\publish
- platform: netcoreapp3.1-win64
build-dir: netcoreapp3.1\win-x64\publish
- platform: netcoreapp3.1-win-arm
build-dir: netcoreapp3.1\win-arm\publish
- platform: netcoreapp3.1-win-arm64
build-dir: netcoreapp3.1\win-arm64\publish
- platform: netcoreapp3.1-linux64
build-dir: netcoreapp3.1\linux-x64\publish
- platform: netcoreapp3.1-linux-arm
build-dir: netcoreapp3.1\linux-arm\publish
- platform: netcoreapp3.1-linux-arm64
build-dir: netcoreapp3.1\linux-arm64\publish
- platform: netcoreapp3.1-osx64
build-dir: netcoreapp3.1\osx-x64\publish
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{env.CI_REQ_DOTNET_SDK_VER}}
- name: Setup MSBuild
uses: microsoft/[email protected]
- name: Setup NuGet
uses: NuGet/[email protected]
- name: Restore NuGet packages for NETReactorSlayer.GUI
run: nuget restore NETReactorSlayer.GUI\NETReactorSlayer.GUI.csproj -PackagesDirectory .\packages\
if: ${{ contains(matrix.platform, 'netframework') }}
- name: Build ${{matrix.platform}}
run: .\build.ps1 ${{matrix.platform}}
- name: Create output directory
run: New-Item -ItemType Directory -Path C:\builtfiles\NETReactorSlayer-${{matrix.platform}} -Force > $null
continue-on-error: true
- name: Copy release files for upload
run: Copy-Item -Path bin\Release\${{matrix.build-dir}}\* -Destination C:\builtfiles\NETReactorSlayer-${{matrix.platform}} -Recurse
- name: Upload NETReactorSlayer
uses: actions/upload-artifact@v3
if: ${{ contains(matrix.platform, 'netframework') && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/')) }}
with:
name: NETReactorSlayer-${{matrix.platform}}
path: C:\builtfiles\NETReactorSlayer-${{matrix.platform}}
if-no-files-found: error
- name: Upload NETReactorSlayer.CLI
uses: actions/upload-artifact@v3
if: ${{ !contains(matrix.platform, 'netframework') && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/'))}}
with:
name: NETReactorSlayer.CLI-${{matrix.platform}}
path: C:\builtfiles\NETReactorSlayer-${{matrix.platform}}
if-no-files-found: error