diff --git a/.github/workflows/MediaInfo.yaml b/.github/workflows/MediaInfo.yaml new file mode 100644 index 0000000..a99dd2f --- /dev/null +++ b/.github/workflows/MediaInfo.yaml @@ -0,0 +1,411 @@ +name: MediaInfo + +on: + push: + branches: [ mediainfo ] + +jobs: + prepare-mediainfo: + runs-on: ubuntu-latest + env: + MEDIAINFO_VERSION: 21.09 + + steps: + - name: Check out AVDump3 + uses: actions/checkout@v2.1.0 + with: + path: AVDump3 + + - name: Check out MediaInfo + run: | + curl -LOSs \ + https://mediaarea.net/download/source/libmediainfo/${MEDIAINFO_VERSION}/libmediainfo_${MEDIAINFO_VERSION}_AllInclusive.7z + 7z x libmediainfo_${MEDIAINFO_VERSION}_AllInclusive.7z + + - name: Fix build-breaking MediaInfo bugs + working-directory: libmediainfo_AllInclusive + run: | + # Missing include breaks build on non-Windows without _POSIX_PRIORITY_SCHEDULING (Alpine) + sed -i~ '1i\ + #include \ + ' MediaInfoLib/Source/MediaInfo/MediaInfo_Internal.cpp + + # Function is called but not compiled with MEDIAINFO_MINIMAL_YES + cr=$'\r' + patch MediaInfoLib/Source/MediaInfo/MediaInfo_Inform.cpp <