Update CI native

This commit is contained in:
luvletter2333 2022-02-04 11:49:46 +08:00
parent c706d2c2c5
commit 8d07f4d1ad
2 changed files with 21 additions and 17 deletions

View File

@ -25,14 +25,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch Status
run: git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status
run: |
git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status
git submodule status TMessagesProj/jni/libvpx > libvpx_status
- name: FFmpeg Cache
id: cache
uses: actions/cache@v2
with:
path: |
TMessagesProj/jni/ffmpeg/build
key: ${{ hashFiles('ffmpeg_status', 'TMessagesProj/jni/*_ffmpeg.sh') }}
TMessagesProj/jni/libvpx/build
key: ${{ hashFiles('ffmpeg_status', 'libvpx_status', 'TMessagesProj/jni/*ffmpeg*.sh', 'TMessagesProj/jni/*libvpx*.sh') }}
- name: Setup Android SDK Tools
uses: android-actions/setup-android@v2
if: steps.cache.outputs.cache-hit != 'true'
@ -45,6 +48,8 @@ jobs:
- name: Native Build
if: steps.cache.outputs.cache-hit != 'true'
run: |
sudo apt-get install yasm -y
./run init libs libvpx
./run init libs ffmpeg
boringssl:
name: Native Build (BoringSSL)
@ -94,6 +99,7 @@ jobs:
- name: Fetch Status
run: |
git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status
git submodule status TMessagesProj/jni/libvpx > libvpx_status
git submodule status TMessagesProj/jni/boringssl > boringssl_status
- name: Native Cache
id: cache
@ -112,7 +118,8 @@ jobs:
with:
path: |
TMessagesProj/jni/ffmpeg/build
key: ${{ hashFiles('ffmpeg_status', 'TMessagesProj/jni/*_ffmpeg.sh') }}
TMessagesProj/jni/libvpx/build
key: ${{ hashFiles('ffmpeg_status', 'libvpx_status', 'TMessagesProj/jni/*ffmpeg*.sh', 'TMessagesProj/jni/*libvpx*.sh') }}
- name: BoringSSL Cache
uses: actions/cache@v2
if: steps.cache.outputs.cache-hit != 'true'
@ -134,11 +141,6 @@ jobs:
run: |
cd TMessagesProj/jni
./patch_boringssl.sh
- name: Native Build (libvpx)
if: (matrix.flavor == 'x86' || matrix.flavor == 'x86_64') && steps.cache.outputs.cache-hit != 'true'
run: |
sudo apt-get install yasm -y
./run init libs libvpx
- name: Native Build
if: steps.cache.outputs.cache-hit != 'true'
run: |

View File

@ -33,14 +33,17 @@ jobs:
- name: Checkout
uses: actions/checkout@v2
- name: Fetch Status
run: git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status
run: |
git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status
git submodule status TMessagesProj/jni/libvpx > libvpx_status
- name: FFmpeg Cache
id: cache
uses: actions/cache@v2
with:
path: |
TMessagesProj/jni/ffmpeg/build
key: ${{ hashFiles('ffmpeg_status', 'TMessagesProj/jni/*_ffmpeg.sh') }}
TMessagesProj/jni/libvpx/build
key: ${{ hashFiles('ffmpeg_status', 'libvpx_status', 'TMessagesProj/jni/*ffmpeg*.sh', 'TMessagesProj/jni/*libvpx*.sh') }}
- name: Setup Android SDK Tools
uses: android-actions/setup-android@v2
if: steps.cache.outputs.cache-hit != 'true'
@ -53,6 +56,8 @@ jobs:
- name: Native Build
if: steps.cache.outputs.cache-hit != 'true'
run: |
sudo apt-get install yasm -y
./run init libs libvpx
./run init libs ffmpeg
boringssl:
name: Native Build (BoringSSL)
@ -103,14 +108,16 @@ jobs:
- name: Fetch Status
run: |
git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status
git submodule status TMessagesProj/jni/libvpx > libvpx_status
git submodule status TMessagesProj/jni/boringssl > boringssl_status
- name: Native Cache
id: cache
uses: actions/cache@v2
with:
path: |
TMessagesProj/src/main/libs
key: ${{ hashFiles('TMessagesProj/jni/**', 'ffmpeg_status', 'boringssl_status') }}-${{ matrix.flavor }}
TMessagesProj/jni/ffmpeg/build
TMessagesProj/jni/libvpx/build
key: ${{ hashFiles('ffmpeg_status', 'libvpx_status', 'TMessagesProj/jni/*ffmpeg*.sh', 'TMessagesProj/jni/*libvpx*.sh') }}
- name: Checkout Library
if: steps.cache.outputs.cache-hit != 'true'
run: |
@ -143,11 +150,6 @@ jobs:
run: |
cd TMessagesProj/jni
./patch_boringssl.sh
- name: Native Build (libvpx)
if: (matrix.flavor == 'x86' || matrix.flavor == 'x86_64') && steps.cache.outputs.cache-hit != 'true'
run: |
sudo apt-get install yasm -y
./run init libs libvpx
- name: Native Build
if: steps.cache.outputs.cache-hit != 'true'
run: |