diff --git a/.github/workflows/mac.yml b/.github/workflows/mac.yml index 2e45921d9..3555d3334 100644 --- a/.github/workflows/mac.yml +++ b/.github/workflows/mac.yml @@ -167,29 +167,33 @@ jobs: id: cache-opus uses: actions/cache@v2 with: - path: ${{ env.LibrariesPath }}/opus + path: ${{ env.LibrariesPath }}/opus-cache key: ${{ runner.OS }}-opus-${{ env.CACHE_KEY }} - - name: Opus. + - name: Opus clone. + run: | + cd $LibrariesPath + + git clone -b v1.3 --depth=1 $GIT/xiph/opus + - name: Opus build. if: steps.cache-opus.outputs.cache-hit != 'true' run: | cd $LibrariesPath - git clone $GIT/xiph/opus cd opus - git checkout v1.3 ./autogen.sh CFLAGS="$MIN_MAC $UNGUARDED" CPPFLAGS="$MIN_MAC $UNGUARDED" LDFLAGS="$MIN_MAC" ./configure --prefix=$PREFIX make -j$(nproc) + sudo make DESTDIR="$LibrariesPath/opus-cache" install - name: Opus install. run: | - cd $LibrariesPath/opus - sudo make install + cd $LibrariesPath + sudo cp -R opus-cache/. / - name: Libiconv cache. id: cache-libiconv uses: actions/cache@v2 with: - path: ${{ env.LibrariesPath }}/${{ env.LIBICONV_VER }} + path: ${{ env.LibrariesPath }}/libiconv-cache key: ${{ runner.OS }}-${{ env.LIBICONV_VER }}-${{ env.CACHE_KEY }} - name: Libiconv. if: steps.cache-libiconv.outputs.cache-hit != 'true' @@ -201,10 +205,11 @@ jobs: cd $LIBICONV_VER CFLAGS="$MIN_MAC $UNGUARDED" CPPFLAGS="$MIN_MAC $UNGUARDED" LDFLAGS="$MIN_MAC" ./configure --enable-static --prefix=$PREFIX make -j$(nproc) + sudo make DESTDIR="$LibrariesPath/libiconv-cache" install - name: Libiconv install. run: | - cd $LibrariesPath/$LIBICONV_VER - sudo make install + cd $LibrariesPath + sudo cp -R libiconv-cache/. / - name: FFmpeg cache. id: cache-ffmpeg