-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (48 loc) · 1.17 KB
/
build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
name: Build
on:
push:
paths-ignore:
- "native/**"
- ".github/workflows/native.yml"
pull_request:
paths-ignore:
- "native/**"
- ".github/workflows/native.yml"
defaults:
run:
shell: bash
jobs:
build:
name: Build ${{ matrix.rid }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: windows-latest
rid: win-x64
- os: windows-latest
rid: win-x86
- os: macos-latest
rid: osx
- os: ubuntu-latest
rid: linux-x64
steps:
- uses: actions/checkout@v3
- name: Build
run: |
cd src/NetMiniZ.Tests
dotnet build -c Release -r ${{ matrix.rid }}
- name: Test
run: |
cd src/NetMiniZ.Tests
dotnet test --runtime ${{ matrix.rid }}
dispatch:
runs-on: ubuntu-latest
needs: [ build ]
if: github.repository == 'jsm174/net-miniz' && github.ref == 'refs/heads/master' && github.event_name == 'push'
steps:
- uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.GH_PAT }}
event-type: build-complete