Skip to content

CI: target use ubuntu-18.04 #3

CI: target use ubuntu-18.04

CI: target use ubuntu-18.04 #3

Workflow file for this run

name: C/C++ CI
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-18.04, windows-latest, macos-latest]
config: [Release]
include:
- os: ubuntu-18.04
triplet: x64-linux-release
upload-path: /home/runner/.cache/vcpkg/archives
vcpkg-root: /usr/local/share/vcpkg
extra-args: ""
- os: windows-latest
triplet: x64-win-llvm-static-release
upload-path: C:\Users\runneradmin\AppData\Local\vcpkg\archives
vcpkg-root: C:\vcpkg
extra-args: --overlay-triplets=./triplets
- os: macos-latest
triplet: x64-osx-release
upload-path: /Users/runner/.cache/vcpkg/archives
vcpkg-root: /usr/local/share/vcpkg
extra-args: ""
steps:
- uses: actions/checkout@v3
- name: Set up build environment (macos-latest)
run: |
brew install nasm
if: matrix.os == 'macos-latest'
- name: Set up build environment (ubuntu-18.04)
run: |
sudo apt -y install nasm
if: matrix.os == 'ubuntu-18.04'
- name: Patch vcpkg
run: |
(cd ${{ matrix.vcpkg-root }} && git fetch origin)
(cd ${{ matrix.vcpkg-root }} && git reset --hard)
(cd ${{ matrix.vcpkg-root }} && git checkout 217194cea7e3491c14779c763beec50b6a4575d6)
(cd ${{ matrix.vcpkg-root }} && git apply --ignore-space-change --ignore-whitespace --3way ${{ github.workspace }}/ffmpeg.patch)
- name: Build ffmpeg
run: |
vcpkg ${{ matrix.extra-args }} install ffmpeg[avcodec,avfilter,avdevice,avformat,swresample,swscale]:${{ matrix.triplet }}
- uses: actions/upload-artifact@v3
with:
name: ffmpeg-${{ matrix.os }}
path: ${{ matrix.upload-path }}
if: ${{ always() }}