From 2332811ead761669c746b054d870b985c619e0b7 Mon Sep 17 00:00:00 2001 From: ARIYAMA Keiji Date: Thu, 5 Aug 2021 16:53:05 +0900 Subject: [PATCH 1/2] Upload artifacts --- .github/workflows/main.yml | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 98c253b..43d8a84 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -98,3 +98,41 @@ jobs: dotnet test env: DOTNET_CLI_TELEMETRY_OPTOUT: true + pack: + runs-on: macos-latest + needs: [test] + env: + NUGET_PACKAGES: ${{ github.workspace }}/.nuget/packages + steps: + - name: Setup Xamarin + uses: maxim-lobanov/setup-xamarin@v1 + with: + mono-version: 6.12 # specify version in '.' format + xamarin-ios-version: 14.0 # specify version in '' format + xamarin-mac-version: latest # specify 'latest' keyword to pick up the latest available version + xamarin-android-version: 11.2 # specify full version; it is not recomended option because your pipeline can be broken suddenly in future + xcode-version: 12 + - name: Checkout + uses: actions/checkout@v2 + - name: Cache + uses: actions/cache@v2.1.5 + env: + cache-name: cache-nuget-packages + with: + path: ${{ github.workspace }}/.nuget/packages + key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/*.csproj') }} + - name: Prepare + run: | + nuget restore + - name: Android + run: | + msbuild ./Chino.Android/Chino.Android.csproj /t:pack /p:Configuration=Release + - name: iOS + run: | + msbuild ./Chino.iOS/Chino.iOS.csproj /t:pack /p:Configuration=Release + - name: Upload Artifact + uses: actions/upload-artifact@v2 + with: + name: nuget_packages + path: ${{ github.workspace }}/**/bin/Release/*.nupkg + retention-days: 90 From 9f3e33365715548115cf4881a0d55580d2a52ec3 Mon Sep 17 00:00:00 2001 From: ARIYAMA Keiji Date: Thu, 5 Aug 2021 17:19:39 +0900 Subject: [PATCH 2/2] Update main.yml --- .github/workflows/main.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 43d8a84..26e39b6 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -124,6 +124,9 @@ jobs: - name: Prepare run: | nuget restore + - name: Common + run: | + msbuild ./Chino.Common/Chino.Common.csproj /t:pack /p:Configuration=Release - name: Android run: | msbuild ./Chino.Android/Chino.Android.csproj /t:pack /p:Configuration=Release