mirror of
https://github.com/LostArtefacts/TRX.git
synced 2025-04-28 12:47:58 +03:00
build: fix caching ffmpeg builds
This commit is contained in:
parent
d07a87f7b5
commit
0c8c30a598
1 changed files with 14 additions and 4 deletions
18
.github/workflows/build_macos.yml
vendored
18
.github/workflows/build_macos.yml
vendored
|
@ -73,9 +73,9 @@ jobs:
|
|||
- name: "Build dependency: libsdl2 (universal)"
|
||||
run: sudo port -N install libsdl2 +universal
|
||||
|
||||
- name: "Cache dependency: ffmpeg (universal)"
|
||||
id: cache-ffmpeg
|
||||
uses: actions/cache@v3
|
||||
- name: "Restore cache dependency: ffmpeg (universal)"
|
||||
id: restore-cache-ffmpeg
|
||||
uses: actions/cache/restore@v3
|
||||
with:
|
||||
key: ${{ runner.os }}-build-ffmpeg-${{ hashFiles('.github/workflows/build_macos.yml') }}
|
||||
path: |
|
||||
|
@ -83,7 +83,7 @@ jobs:
|
|||
${{ env.FFMPEG_INSTALL_TMP_X86_64 }}
|
||||
|
||||
- name: "Build dependency: ffmpeg (universal)"
|
||||
if: ${{ steps.cache-ffmpeg.outputs.cache-hit != 'true' }}
|
||||
if: ${{ steps.restore-cache-ffmpeg.outputs.cache-hit != 'true' }}
|
||||
run: |
|
||||
# Install to separate staging paths for all architectures in
|
||||
# preparation for fusing universal libraries in a follow-up step.
|
||||
|
@ -123,6 +123,16 @@ jobs:
|
|||
make -j$(sysctl -n hw.ncpu)
|
||||
sudo make install
|
||||
|
||||
- name: "Save cache dependency: ffmpeg (universal)"
|
||||
id: save-cache-ffmpeg
|
||||
if: always()
|
||||
uses: actions/cache/save@v3
|
||||
with:
|
||||
key: ${{ runner.os }}-build-ffmpeg-${{ hashFiles('.github/workflows/build_macos.yml') }}
|
||||
path: |
|
||||
${{ env.FFMPEG_INSTALL_TMP_UNIVERSAL }}
|
||||
${{ env.FFMPEG_INSTALL_TMP_X86_64 }}
|
||||
|
||||
- name: "Build dependency: ffmpeg (fuse universal libraries)"
|
||||
run: |
|
||||
# Copy universal artefacts to the MacPorts install prefix.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue