-
-
Notifications
You must be signed in to change notification settings - Fork 323
35 lines (34 loc) · 950 Bytes
/
main.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
name: main
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Install FFmpeg - linux
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get install ffmpeg -y
- name: Build
run: |
dotnet build -c Release
- name: Test
run: |
dotnet test -c Release
- uses: actions/upload-artifact@v2
if: matrix.os == 'windows-latest'
with:
path: FFmpeg.AutoGen/bin/Release/*.nupkg
if-no-files-found: error
- name: Codegen Build & Test
if: matrix.os == 'windows-latest'
run: |
dotnet run -c Release -p FFmpeg.AutoGen.CppSharpUnsafeGenerator -- --input FFmpeg --namespace FFmpeg.AutoGen
dotnet build FFmpeg.AutoGen