ci improvements (#169)
parent
11e1bdbea6
commit
d7870040fe
@ -1,25 +1,37 @@
|
|||||||
name: .NET Core CI
|
name: .NET Core CI
|
||||||
|
|
||||||
on: [push, pull_request]
|
on:
|
||||||
|
push:
|
||||||
|
paths-ignore:
|
||||||
|
- '.github/*'
|
||||||
|
- '.github/*_TEMPLATE/**'
|
||||||
|
- '*.md'
|
||||||
|
pull_request:
|
||||||
|
paths-ignore:
|
||||||
|
- '.github/*'
|
||||||
|
- '.github/*_TEMPLATE/**'
|
||||||
|
- '*.md'
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
name: .NET on ${{ matrix.os }}
|
name: .NET on ${{ matrix.os }} (${{ matrix.configuration }})
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
os: [ubuntu-latest, windows-latest]
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||||
|
configuration: [Release, Debug]
|
||||||
runs-on: ${{ matrix.os }}
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v1
|
- uses: actions/checkout@v2
|
||||||
|
- name: Setup .NET Core
|
||||||
- name: Setup .NET Core
|
uses: actions/setup-dotnet@v1
|
||||||
uses: actions/setup-dotnet@v1
|
- name: Build
|
||||||
|
run: dotnet publish -c ${{ matrix.configuration }} -o artifacts
|
||||||
- name: Restore
|
- name: Upload artifact
|
||||||
run: dotnet restore
|
uses: actions/upload-artifact@v2
|
||||||
|
if: matrix.configuration == 'Release'
|
||||||
- name: Build
|
with:
|
||||||
run: dotnet build -c Release
|
name: DepotDownloader-${{ runner.os }}
|
||||||
|
path: artifacts
|
||||||
|
if-no-files-found: error
|
||||||
|
Loading…
Reference in New Issue