mirror of
https://github.com/nsnail/spectre.console.git
synced 2025-04-16 00:42:51 +08:00
38 lines
838 B
YAML
38 lines
838 B
YAML
name: Continuous Integration
|
|
on: pull_request
|
|
|
|
env:
|
|
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
|
|
DOTNET_CLI_TELEMETRY_OPTOUT: true
|
|
|
|
jobs:
|
|
build:
|
|
name: Build
|
|
if: "!contains(github.event.head_commit.message, 'skip-ci')"
|
|
strategy:
|
|
matrix:
|
|
kind: ['linux', 'windows', 'macOS']
|
|
include:
|
|
- kind: linux
|
|
os: ubuntu-latest
|
|
- kind: windows
|
|
os: windows-latest
|
|
- kind: macOS
|
|
os: macos-latest
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v2
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Setup dotnet
|
|
uses: actions/setup-dotnet@v1
|
|
with:
|
|
dotnet-version: 3.1.301
|
|
|
|
- name: Build
|
|
shell: bash
|
|
run: |
|
|
dotnet tool restore
|
|
dotnet cake |