Skip to content

Commit 9a0984d

Browse files
Add GHA build workflow
1 parent 59bfc82 commit 9a0984d

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed

.github/workflows/ci.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
on:
2+
push:
3+
branches:
4+
- "**"
5+
tags:
6+
- "*.*.*"
7+
paths-ignore:
8+
- "README.md"
9+
10+
pull_request:
11+
12+
workflow_dispatch:
13+
14+
env:
15+
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true
16+
DOTNET_CLI_TELEMETRY_OPTOUT: true
17+
DOTNET_NOLOGO: true
18+
19+
jobs:
20+
build:
21+
strategy:
22+
fail-fast: false
23+
matrix:
24+
job:
25+
- os: windows-2019
26+
build: ./build.cmd
27+
push: true
28+
name: ${{ matrix.job.os }}
29+
runs-on: ${{ matrix.job.os }}
30+
steps:
31+
- name: Setup netcoreapp3.1
32+
uses: actions/[email protected]
33+
with:
34+
dotnet-version: "3.1.412"
35+
- name: Setup net5.0
36+
uses: actions/[email protected]
37+
with:
38+
dotnet-version: "5.0.400"
39+
- name: Run dotnet --info
40+
run: dotnet --info
41+
- uses: actions/[email protected]
42+
with:
43+
fetch-depth: 0
44+
- name: Build
45+
run: ${{ matrix.job.build }} --verbosity=diagnostic --target=pack
46+
- name: Publish artifacts
47+
if: matrix.job.push && (github.ref == 'refs/heads/master' || startsWith(github.ref, 'refs/tags/'))
48+
uses: actions/[email protected]
49+
with:
50+
if-no-files-found: warn
51+
name: package
52+
path: artifact/nuget/**/*

0 commit comments

Comments
 (0)