Modernize and cleanup pre 6.1 (#285) #93
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |