diff --git a/.github/workflows/ffmpeg.yml b/.github/workflows/ffmpeg.yml index e4043c5..ea9a17b 100644 --- a/.github/workflows/ffmpeg.yml +++ b/.github/workflows/ffmpeg.yml @@ -333,6 +333,7 @@ jobs: path: dist/libzimg.tgz libopus: + if: ${{ false }} runs-on: windows-2019 steps: - name: Set up MSYS2 @@ -372,11 +373,41 @@ jobs: path: dist/libopus.tgz libx264: - if: ${{ false }} runs-on: windows-2019 steps: - name: Set up MSYS2 - run: echo "bla" + uses: msys2/setup-msys2@v2 + with: + install: base-devel binutils autotools automake mingw-w64-x86_64-cmake nasm + path-type: inherit + - name: Set up cache + uses: actions/cache@v2 + env: + cache-name: cache-ffmpeg-${{ env.msysConfig }} + with: + path: cache + key: cache-key + - name: Set up GIT + run: | + git config --global core.autocrlf false + git config --global core.eol lf + - name: Checkout X264 + uses: actions/checkout@v3.0.0 + with: + repository: mirror/x264 + ref: master + path: x264 + - name: Build X264 + shell: cmd + run: | + call "${{ env.vsPath }}VC\Auxiliary\Build\vcvars64.bat" + md build build\include build\lib build\lib\pkgconfig dist + D:\a\_temp\setup-msys2\msys2.cmd -c 'cd x264 ; CC=cl ./configure --prefix=$(realpath ../build) --disable-cli --enable-static --enable-pic --libdir=../build/lib ; make -j ; make install-lib-static ; cd ../build ; tar czf ../dist/libx264.tgz *' + - name: Publish artifact + uses: actions/upload-artifact@v2 + with: + name: libx264 + path: dist/libx264.tgz libx265: if: ${{ false }}