5 changed files with 73 additions and 48 deletions
@ -0,0 +1,67 @@ |
|||||
|
name: build |
||||
|
|
||||
|
on: |
||||
|
push: |
||||
|
branches: [ dev, rel/* ] |
||||
|
tags: [ '*' ] |
||||
|
pull_request: |
||||
|
branches: [ dev, rel/* ] |
||||
|
|
||||
|
jobs: |
||||
|
build: |
||||
|
name: ${{ matrix.os }} |
||||
|
runs-on: ${{ matrix.os }} |
||||
|
|
||||
|
strategy: |
||||
|
fail-fast: false |
||||
|
matrix: |
||||
|
os: [ macos-latest, ubuntu-latest, windows-latest ] |
||||
|
include: |
||||
|
- os: macos-latest |
||||
|
os_name: macos |
||||
|
- os: ubuntu-latest |
||||
|
os_name: linux |
||||
|
- os: windows-latest |
||||
|
os_name: windows |
||||
|
|
||||
|
steps: |
||||
|
- name: Checkout code |
||||
|
uses: actions/checkout@v2 |
||||
|
|
||||
|
- name: Setup .NET Core SDK |
||||
|
uses: actions/setup-dotnet@v1 |
||||
|
|
||||
|
- name: Build, test and pack |
||||
|
run: eng\common\CIBuild.cmd -configuration Release -prepareMachine -integrationTest |
||||
|
if: ${{ runner.os == 'Windows' }} |
||||
|
|
||||
|
- name: Build, test and pack |
||||
|
shell: pwsh |
||||
|
run: ./eng/common/cibuild.sh -configuration Release -prepareMachine -integrationTest |
||||
|
if: ${{ runner.os != 'Windows' }} |
||||
|
|
||||
|
- name: Publish logs |
||||
|
uses: actions/upload-artifact@v1 |
||||
|
with: |
||||
|
name: logs-${{ matrix.os_name }} |
||||
|
path: ./artifacts/log/Release |
||||
|
|
||||
|
- name: Publish NuGet packages |
||||
|
uses: actions/upload-artifact@v1 |
||||
|
with: |
||||
|
name: packages-${{ matrix.os_name }} |
||||
|
path: ./artifacts/packages/Release/Shipping |
||||
|
|
||||
|
- name: Publish test results |
||||
|
uses: actions/upload-artifact@v1 |
||||
|
with: |
||||
|
name: testresults-${{ matrix.os_name }} |
||||
|
path: ./artifacts/TestResults/Release |
||||
|
|
||||
|
- name: Push NuGet packages to MyGet.org |
||||
|
run: dotnet nuget push "artifacts\packages\Release\Shipping\*.nupkg" --api-key ${{ secrets.MYGET_API_KEY }} --skip-duplicate --source https://www.myget.org/F/openiddict/ --symbol-source https://www.myget.org/F/openiddict/ |
||||
|
if: ${{ github.repository_owner == 'openiddict' && (github.ref == 'refs/heads/dev' || startsWith(github.ref, 'refs/tags/')) && runner.os == 'Windows' }} |
||||
|
|
||||
|
- name: Push NuGet packages to NuGet.org |
||||
|
run: dotnet nuget push "artifacts\packages\Release\Shipping\*.nupkg" --api-key ${{ secrets.NUGET_API_KEY }} --skip-duplicate --source https://api.nuget.org/v3/index.json |
||||
|
if: ${{ github.repository_owner == 'openiddict' && startsWith(github.ref, 'refs/tags/') && runner.os == 'Windows' }} |
||||
@ -1,22 +0,0 @@ |
|||||
language: csharp |
|
||||
mono: none |
|
||||
dist: xenial |
|
||||
addons: |
|
||||
apt: |
|
||||
packages: |
|
||||
- gettext |
|
||||
- libcurl4-openssl-dev |
|
||||
- libicu-dev |
|
||||
- libssl-dev |
|
||||
- libunwind8 |
|
||||
- zlib1g |
|
||||
env: |
|
||||
global: |
|
||||
- DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true |
|
||||
- DOTNET_CLI_TELEMETRY_OPTOUT: 1 |
|
||||
os: |
|
||||
- linux |
|
||||
- osx |
|
||||
osx_image: xcode8.2 |
|
||||
script: |
|
||||
- ./eng/common/cibuild.sh -configuration Release -prepareMachine -integrationTest |
|
||||
@ -1,19 +0,0 @@ |
|||||
version: '{build}' |
|
||||
image: Visual Studio 2017 |
|
||||
|
|
||||
build_script: |
|
||||
- cmd: eng\common\cibuild.cmd -configuration Release -prepareMachine -integrationTest |
|
||||
|
|
||||
test: off |
|
||||
|
|
||||
artifacts: |
|
||||
- path: artifacts\packages\Release\Shipping\*.nupkg |
|
||||
name: NuGet |
|
||||
|
|
||||
deploy: |
|
||||
- provider: NuGet |
|
||||
server: https://www.myget.org/F/openiddict/api/v2/package |
|
||||
api_key: |
|
||||
secure: 0ZVg9vnH4PzTu0CXjTZyDmvvzPMt1R8Yl1ObxleO8dAMk6M1AqmU3YmoaQkc2VNi |
|
||||
skip_symbols: false |
|
||||
symbol_server: https://www.myget.org/F/openiddict/api/v2/package |
|
||||
Loading…
Reference in new issue