This repository has been archived by the owner on Jul 6, 2024. It is now read-only.
Fix links in docs #235
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
name: Build master | |
on: [push, pull_request] | |
jobs: | |
build: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use .NET Core 3.1 SDK | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '3.1.x' | |
- name: Use .NET Core 5.0.x SDK | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '5.0.x' | |
# Not specifying a version will attempt to install via global.json | |
- name: Use .NET Core global.json | |
uses: actions/setup-dotnet@v1 | |
- name: Build | |
if: runner.os != 'Windows' | |
run: | | |
chmod +x ./build.sh | |
./build.sh DotnetBuild | |
env: | |
CI: true | |
- name: Build | |
if: runner.os == 'Windows' | |
run: ./build.cmd DotnetBuild | |
env: | |
CI: true | |
test: | |
strategy: | |
matrix: | |
os: [self-hosted] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Test | |
if: runner.os != 'Windows' | |
run: | | |
chmod +x ./build.sh | |
./build.sh DotnetTest | |
env: | |
CI: true | |
- name: Test | |
if: runner.os == 'Windows' | |
run: ./build.cmd DotnetTest | |
env: | |
CI: true |