name: Make Build on: push: branches: [ master ] pull_request: branches: [ master ] permissions: contents: read jobs: build: runs-on: ${{ matrix.os }} strategy: matrix: os: [ubuntu-latest, macos-latest] cc: [gcc, clang] exclude: - os: macos-latest cc: gcc steps: - uses: actions/checkout@v4 with: submodules: true - name: install deps (ubuntu) if: matrix.os == 'ubuntu-latest' run: | sudo apt-get update sudo apt-get install autoconf automake wget ffmpeg libavformat-dev libavcodec-dev libswscale-dev libavutil-dev libswresample-dev - name: install deps (macOS) if: matrix.os == 'macos-latest' run: | brew update brew install autoconf automake wget ffmpeg - name: configure run: ./autogen.sh --enable-static --disable-shared - name: make run: make V=1 CXXFLAGS='-Werror -Wno-error=deprecated-declarations' -j2 -k - name: make test run: | make test-sync make test -j2 -k build-win: runs-on: windows-latest steps: - name: Git checkout uses: actions/checkout@v4 with: submodules: true - name: Parse AviSynth+ release metadata uses: actions/github-script@v7 with: script: | const req = await github.request('https://api.github.com/repos/avisynth/avisynthplus/releases'); const data = req.data; let avstag = ''; for(let rel of data){ if(rel.prerelease||rel.draft){ continue; } avstag = rel.tag_name; if(avstag != ''){ break; } } core.exportVariable('AVS_TAG', avstag); - name: Add MSBuild to PATH uses: microsoft/setup-msbuild@v2 with: msbuild-architecture: x64 - name: Make builds... run: | cd .. git clone https://github.com/AviSynth/AviSynthPlus.git --branch "${{ env.AVS_TAG }}" --depth 1 cd ffms2 vcpkg install ffmpeg[avcodec,avdevice,avfilter,avformat,swresample,swscale,zlib,bzip2,core,dav1d,gpl,version3,lzma,openssl,xml2]:x86-windows-static vcpkg install ffmpeg[avcodec,avdevice,avfilter,avformat,swresample,swscale,zlib,bzip2,core,dav1d,gpl,version3,lzma,openssl,xml2]:x64-windows-static vcpkg integrate install MSBuild.exe /t:Rebuild /p:PlatformToolset=v143 /m /p:Configuration=Release /p:Platform=x86 "./build-msvc/ffms2.sln" MSBuild.exe /t:Rebuild /p:PlatformToolset=v143 /m /p:Configuration=Release /p:Platform=x64 "./build-msvc/ffms2.sln" cmake -E copy "build-msvc\bin\Win32\Release\ffms2.dll" "dist\x86\ffms2.dll" cmake -E copy "build-msvc\bin\Win32\Release\ffms2.lib" "dist\x86\ffms2.lib" cmake -E copy "build-msvc\bin\Win32\Release\ffmsindex.exe" "dist\x86\ffmsindex.exe" cmake -E copy "build-msvc\bin\x64\Release\ffms2.dll" "dist\x64\ffms2.dll" cmake -E copy "build-msvc\bin\x64\Release\ffms2.lib" "dist\x64\ffms2.lib" cmake -E copy "build-msvc\bin\x64\Release\ffmsindex.exe" "dist\x64\ffmsindex.exe" cmake -E copy_directory "include" "dist\include" cmake -E copy_directory "doc" "dist\doc" cmake -E copy "etc\FFMS2.avsi" "dist\FFMS2.avsi" cmake -E copy "COPYING" "dist\COPYING" - name: Upload artifact uses: actions/upload-artifact@v4 with: name: ffms2_build_win path: dist