From 2044f15f9eec3c3713161dd5dbf20bcc1e638ca6 Mon Sep 17 00:00:00 2001 From: "Hiroaki@R-Koubou" Date: Sat, 18 Nov 2023 00:22:24 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AF=E3=83=BC=E3=82=AF=E3=83=95=E3=83=AD?= =?UTF-8?q?=E3=83=BC=E3=82=92=E4=BB=AE=E8=A8=AD=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 35 +++++++- .../Applications/Xamarin.Mac/publish.msbuild | 81 +++++++++++++++++++ 2 files changed, 114 insertions(+), 2 deletions(-) create mode 100644 KeySwitchManager/Sources/Runtime/Applications/Xamarin.Mac/publish.msbuild diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 0c6d4d34..d4b8d791 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,7 +9,7 @@ on: build-app-kind: required: false type: string - default: "CLI, WPF" + default: "CLI, WPF, Xamarin.Mac" build-configuration: required: true type: string @@ -23,7 +23,7 @@ on: description: "Kind of Application" required: false type: string - default: "CLI, WPF" + default: "CLI, WPF, Xamarin.Mac" build-configuration: description: "Build configuration for msbuild" required: true @@ -99,3 +99,34 @@ jobs: with: name: KeySwitchManager.WPF-${{ inputs.build-configuration }}${{ inputs.custom-suffix }}-${{ github.sha }} path: ${{ github.workspace }}/publish/KeySwitchManager.WPF*/ + + #-------------------------------------------------------------- + # WPF + #-------------------------------------------------------------- + xmarin-mac-build: + if: contains(inputs.build-app-kind, 'Xamarin.Mac') + runs-on: macos-latest + env: + DOTNET_CLI_TELEMETRY_OPTOUT: 1 + DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1 + + steps: + - name: Checkout + uses: actions/checkout@v3 + + - name: Install SDK + uses: actions/setup-dotnet@v3 + with: + dotnet-version: ${{ env.DOTNET_SDK_VERSION }} + + - name: Xamarin.Mac Build + run: dotnet msbuild /nologo /t:Archive /p:Configuration=${{ inputs.build-configuration }} /p:PublishDir=${{ github.workspace }}/publish $ProjectFile + shell: bash + env: + ProjectFile: KeySwitchManager/Sources/Runtime/Applications/WPF/publish.msbuild + + - name: Artifact Xamarin.Mac + uses: actions/upload-artifact@v3 + with: + name: KeySwitchManager.Xamarin.Mac-${{ inputs.build-configuration }}${{ inputs.custom-suffix }}-${{ github.sha }} + path: ${{ github.workspace }}/publish/KeySwitchManager.Xamarin.Mac*/ diff --git a/KeySwitchManager/Sources/Runtime/Applications/Xamarin.Mac/publish.msbuild b/KeySwitchManager/Sources/Runtime/Applications/Xamarin.Mac/publish.msbuild new file mode 100644 index 00000000..3c66bb99 --- /dev/null +++ b/KeySwitchManager/Sources/Runtime/Applications/Xamarin.Mac/publish.msbuild @@ -0,0 +1,81 @@ + + + + KeySwitchManager.Xamarin.Mac + Applications.Xamarin.Mac.csproj + $([System.DateTime]::Now.ToString("yyyyMMdd")) + + + + + + $(ProjectName)-$(RID) + false + + + + $(ProjectName) + true + + + + $(PublishDir)/$(Prefix) + + + + + + + + + + + + + + + + + OutDir=$(PublishWorkDir);PublishDir=$(PublishWorkDir);Configuration=$(Configuration);SelfContained=true;RuntimeIdentifier=$(RID) + + + + + + OutDir=$(PublishWorkDir);PublishDir=$(PublishWorkDir);Configuration=$(Configuration) + + + + + + + + + + + + + + + + \ No newline at end of file