mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Cache make install calls in macos action
This commit is contained in:
parent
f1cdc7e3f9
commit
309372164c
1 changed files with 14 additions and 9 deletions
23
.github/workflows/mac.yml
vendored
23
.github/workflows/mac.yml
vendored
|
@ -167,29 +167,33 @@ jobs:
|
||||||
id: cache-opus
|
id: cache-opus
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{ env.LibrariesPath }}/opus
|
path: ${{ env.LibrariesPath }}/opus-cache
|
||||||
key: ${{ runner.OS }}-opus-${{ env.CACHE_KEY }}
|
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'
|
if: steps.cache-opus.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
cd $LibrariesPath
|
cd $LibrariesPath
|
||||||
|
|
||||||
git clone $GIT/xiph/opus
|
|
||||||
cd opus
|
cd opus
|
||||||
git checkout v1.3
|
|
||||||
./autogen.sh
|
./autogen.sh
|
||||||
CFLAGS="$MIN_MAC $UNGUARDED" CPPFLAGS="$MIN_MAC $UNGUARDED" LDFLAGS="$MIN_MAC" ./configure --prefix=$PREFIX
|
CFLAGS="$MIN_MAC $UNGUARDED" CPPFLAGS="$MIN_MAC $UNGUARDED" LDFLAGS="$MIN_MAC" ./configure --prefix=$PREFIX
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
|
sudo make DESTDIR="$LibrariesPath/opus-cache" install
|
||||||
- name: Opus install.
|
- name: Opus install.
|
||||||
run: |
|
run: |
|
||||||
cd $LibrariesPath/opus
|
cd $LibrariesPath
|
||||||
sudo make install
|
sudo cp -R opus-cache/. /
|
||||||
|
|
||||||
- name: Libiconv cache.
|
- name: Libiconv cache.
|
||||||
id: cache-libiconv
|
id: cache-libiconv
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
with:
|
with:
|
||||||
path: ${{ env.LibrariesPath }}/${{ env.LIBICONV_VER }}
|
path: ${{ env.LibrariesPath }}/libiconv-cache
|
||||||
key: ${{ runner.OS }}-${{ env.LIBICONV_VER }}-${{ env.CACHE_KEY }}
|
key: ${{ runner.OS }}-${{ env.LIBICONV_VER }}-${{ env.CACHE_KEY }}
|
||||||
- name: Libiconv.
|
- name: Libiconv.
|
||||||
if: steps.cache-libiconv.outputs.cache-hit != 'true'
|
if: steps.cache-libiconv.outputs.cache-hit != 'true'
|
||||||
|
@ -201,10 +205,11 @@ jobs:
|
||||||
cd $LIBICONV_VER
|
cd $LIBICONV_VER
|
||||||
CFLAGS="$MIN_MAC $UNGUARDED" CPPFLAGS="$MIN_MAC $UNGUARDED" LDFLAGS="$MIN_MAC" ./configure --enable-static --prefix=$PREFIX
|
CFLAGS="$MIN_MAC $UNGUARDED" CPPFLAGS="$MIN_MAC $UNGUARDED" LDFLAGS="$MIN_MAC" ./configure --enable-static --prefix=$PREFIX
|
||||||
make -j$(nproc)
|
make -j$(nproc)
|
||||||
|
sudo make DESTDIR="$LibrariesPath/libiconv-cache" install
|
||||||
- name: Libiconv install.
|
- name: Libiconv install.
|
||||||
run: |
|
run: |
|
||||||
cd $LibrariesPath/$LIBICONV_VER
|
cd $LibrariesPath
|
||||||
sudo make install
|
sudo cp -R libiconv-cache/. /
|
||||||
|
|
||||||
- name: FFmpeg cache.
|
- name: FFmpeg cache.
|
||||||
id: cache-ffmpeg
|
id: cache-ffmpeg
|
||||||
|
|
Loading…
Add table
Reference in a new issue