forked from xamarin/Xamarin.Forms
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Apply changes made by https://github.com/filipnavara/Xamarin.Forms
- Loading branch information
1 parent
130d8f5
commit b415888
Showing
17 changed files
with
213 additions
and
331 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: Build and publish | ||
|
||
on: | ||
push: | ||
branches: [ net6 ] | ||
|
||
jobs: | ||
build: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.0.x | ||
- name: Install iOS workload | ||
run: dotnet workload install ios -s https://api.nuget.org/v3/index.json | ||
- name: Install older NuGet.exe | ||
run: | | ||
curl https://dist.nuget.org/win-x86-commandline/v5.8.1/nuget.exe --output nuget.exe | ||
chmod +x nuget.exe | ||
- name: Build | ||
run: msbuild Xamarin.Forms.sln /p:Configuration=Release /p:BUILDVERSION="${GITHUB_RUN_NUMBER}" /p:BUILD_BUILDID="${GITHUB_RUN_NUMBER}" /restore | ||
- name: Build (.NET 6 / iOS) | ||
run: dotnet build Xamarin.Forms.Platform.iOS /p:Configuration=Release /p:TargetFramework=net6.0-ios /p:BUILDVERSION="${GITHUB_RUN_NUMBER}" /p:BUILD_BUILDID="${GITHUB_RUN_NUMBER}" /p:_SdkIgnoreMSBuildCoreWarning=true /p:_ExtrasSkipTargetsCheck=true | ||
- name: Pack | ||
run: | | ||
mono nuget.exe pack .nuspec/Xamarin.Forms.nuspec -Properties "Version=$(< .XamarinFormsVersionFile.txt);Configuration=Release" | ||
- uses: actions/upload-artifact@master | ||
with: | ||
name: build-artifacts | ||
path: Xamarin.Forms.*.nupkg | ||
|
||
publish: | ||
permissions: | ||
packages: write | ||
needs: build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1 | ||
with: | ||
dotnet-version: 6.0.x | ||
include-prerelease: true | ||
- uses: actions/download-artifact@master | ||
with: | ||
name: build-artifacts | ||
path: build-artifacts | ||
- name: Publish | ||
if: ${{ github.event_name == 'push' }} | ||
env: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
dotnet nuget add source https://nuget.pkg.github.com/fabulousfx/index.json -n github | ||
find build-artifacts -name '*.nupkg' | xargs -i dotnet nuget push {} -s github --api-key ${{ secrets.GITHUB_TOKEN }} |
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.