mirror of
https://github.com/nunuhara/xsystem4.git
synced 2026-09-30 19:08:12 +03:00
ci: cache FFmpeg build
This commit is contained in:
@@ -81,7 +81,15 @@ jobs:
|
||||
mingw-w64-x86_64-libsndfile
|
||||
mingw-w64-x86_64-glew
|
||||
|
||||
- name: Cache FFmpeg
|
||||
id: cache-ffmpeg
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: FFmpeg/destdir
|
||||
key: ${{ runner.os }}-ffmpeg-n7.1.2
|
||||
|
||||
- name: Build FFmpeg
|
||||
if: ${{ steps.cache-ffmpeg.outputs.cache-hit != 'true' }}
|
||||
run: |
|
||||
git clone --depth 1 --branch n7.1.2 https://github.com/FFmpeg/FFmpeg.git
|
||||
cd FFmpeg
|
||||
@@ -111,9 +119,14 @@ jobs:
|
||||
--extra-cflags=--static \
|
||||
--prefix=/mingw64
|
||||
make -j$(nproc)
|
||||
make install
|
||||
mkdir destdir
|
||||
DESTDIR=destdir make install
|
||||
cd ..
|
||||
|
||||
- name: Install FFmpeg
|
||||
run: |
|
||||
cp -a FFmpeg/destdir/. /
|
||||
|
||||
- name: Build
|
||||
run: |
|
||||
mkdir debug
|
||||
|
||||
Reference in New Issue
Block a user