Skip to content

Commit

Permalink
2.0 Refactor build script
Browse files Browse the repository at this point in the history
* Address obsolete DotNetCore*
* Remove unsused varables
* Switch from global variables to shared state
* Remove travis specific code
* Add cake-build tag
* Remove usage of obsolete RNGCryptoServiceProvider
* Fix InitialRepo typo
* Fix InitialCommit typo
* Fix test repo typo
* Use Cake Action & Windows on GitHubActions
* Try use Matrix Os for artifact suffix
  • Loading branch information
devlead committed Dec 13, 2021
1 parent 5a38bdc commit 0033200
Show file tree
Hide file tree
Showing 6 changed files with 329 additions and 330 deletions.
41 changes: 17 additions & 24 deletions .github/workflows/build.yml
Expand Up @@ -14,39 +14,32 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, ubuntu-latest, macos-latest]
os: [ubuntu-18.04, ubuntu-latest, macos-latest, windows-2019, windows-2022]
steps:
- name: Get the sources
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install .NET SDKs
uses: actions/setup-dotnet@v1.9.0
- name: Install .NET Core SDK 3.1.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: |
3.1.x
5.0.x
6.0.x
dotnet-version: '3.1.x'

- if: matrix.os == 'windows-latest'
name: Run Cake script Windows
run: |
./build.ps1
- if: matrix.os != 'windows-latest'
name: Run Cake script Posix
run: |
./build.sh
- name: Install .NET Core SDK 5.0.x
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.x'

- name: Upload Artifacts
uses: actions/upload-artifact@v2
- name: Install .NET Core SDK (global.json)
uses: actions/setup-dotnet@v1
with:
name: artifacts
path: artifacts
include-prerelease: 'true'

- name: Upload NuGet Package
uses: actions/upload-artifact@v2
- name: Run Cake script
uses: cake-build/cake-action@v1
env:
matrix-os: ${{ matrix.os }}
with:
name: nuget
path: nuget
target: GitHubActions
cake-version: tool-manifest

0 comments on commit 0033200

Please sign in to comment.