Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upload artifacts #76

Merged
merged 2 commits into from
Aug 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 41 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,44 @@ 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 '<major>.<minor>' format
xamarin-ios-version: 14.0 # specify version in '<major>' 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: 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
- 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