|
1 | 1 | name: CI Build |
2 | 2 | on: |
3 | | - push: |
4 | | - branches: |
5 | | - - 'main' |
6 | | - - 'release/*' |
7 | | - pull_request: |
8 | | - # none |
| 3 | + push: |
| 4 | + branches: |
| 5 | + - "main" |
| 6 | + - "release/*" |
| 7 | + pull_request: |
| 8 | + # none |
9 | 9 | jobs: |
10 | | - Build: |
11 | | - runs-on: windows-latest |
12 | | - steps: |
13 | | - - uses: actions/checkout@v2 |
14 | | - with: |
15 | | - submodules: 'true' |
16 | | - - name: Setup .NET 5.0 |
17 | | - uses: actions/setup-dotnet@v1 |
18 | | - with: |
19 | | - dotnet-version: 5.0.201 |
20 | | - - name: Setup .NET Core 3.1 |
21 | | - uses: actions/setup-dotnet@v1 |
22 | | - with: |
23 | | - dotnet-version: 3.1.404 |
24 | | - - name: Setup NUKE |
25 | | - run: dotnet tool install Nuke.GlobalTool --global |
26 | | - - name: Test |
27 | | - # skip Clean, Restore, and Compile as this will build the affect the whole solution. |
28 | | - # dotnet test will compile the necessary projects for testing only. |
29 | | - run: nuke Test --skip Clean Restore Compile |
30 | | - - name: Validation Checks |
31 | | - run: nuke ValidateSolution |
32 | | - - name: Pack |
33 | | - # TODO build native mixins such as BuildLibSilkDroid |
34 | | - run: nuke Pack --configuration Release --msbuild-properties VersionSuffix=build${{ github.run_number }}.0 ContinuousIntegrationBuild=true --feature-sets Android iOS |
35 | | - - name: Push to NuGet |
36 | | - if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }} |
37 | | - run: nuke PushToNuGet --skip Clean Restore Compile Pack --nuget-feed https://pkgs.dev.azure.com/UltzOS/Silk.NET/_packaging/Experimental/nuget/v3/index.json --nuget-username ${{ secrets.AZDO_ARTIFACTS_USERNAME }} --nuget-password ${{ secrets.AZDO_ARTIFACTS_TOKEN }} --nuget-api-key az |
38 | | - - name: Push to GitHub Packages |
39 | | - if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }} |
40 | | - run: nuke PushToNuGet --skip Clean Restore Compile Pack --nuget-feed https://nuget.pkg.github.com/dotnet/index.json --nuget-api-key ${{ secrets.GITHUB_TOKEN }} |
| 10 | + Build: |
| 11 | + runs-on: windows-latest |
| 12 | + steps: |
| 13 | + - uses: actions/checkout@v3 |
| 14 | + with: |
| 15 | + submodules: "true" |
| 16 | + - name: Setup .NET |
| 17 | + uses: actions/setup-dotnet@v2 |
| 18 | + - name: Setup NUKE |
| 19 | + run: dotnet tool install Nuke.GlobalTool --global |
| 20 | + - name: Test |
| 21 | + # skip Clean, Restore, and Compile as this will build the affect the whole solution. |
| 22 | + # dotnet test will compile the necessary projects for testing only. |
| 23 | + run: nuke Test --skip Clean Restore Compile |
| 24 | + - name: Validation Checks |
| 25 | + run: nuke ValidateSolution |
| 26 | + - name: Pack |
| 27 | + run: nuke Pack --configuration Release --msbuild-properties VersionSuffix=build${{ github.run_number }}.0 ContinuousIntegrationBuild=true --feature-sets Android iOS |
| 28 | + - name: Push to NuGet |
| 29 | + if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }} |
| 30 | + run: nuke PushToNuGet --skip Clean Restore Compile Pack --nuget-feed https://pkgs.dev.azure.com/UltzOS/Silk.NET/_packaging/Experimental/nuget/v3/index.json --nuget-username ${{ secrets.AZDO_ARTIFACTS_USERNAME }} --nuget-password ${{ secrets.AZDO_ARTIFACTS_TOKEN }} --nuget-api-key az |
| 31 | + - name: Push to GitHub Packages |
| 32 | + if: ${{ github.repository == 'dotnet/Silk.NET' && github.event_name != 'pull_request' }} |
| 33 | + run: nuke PushToNuGet --skip Clean Restore Compile Pack --nuget-feed https://nuget.pkg.github.com/dotnet/index.json --nuget-api-key ${{ secrets.GITHUB_TOKEN }} |
0 commit comments