-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
80 additions
and
79 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,36 +10,32 @@ on: | |
- '!.github/workflows/debug.yml' | ||
|
||
jobs: | ||
check: | ||
name: Check Access | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Check access" | ||
uses: "lannonbr/[email protected]" | ||
with: | ||
permission: "write" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ffmpeg: | ||
name: Native Build (FFmpeg) | ||
runs-on: ubuntu-latest | ||
needs: check | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
- name: Fetch Status | ||
run: | | ||
sed -i 's/\/\///g' settings.gradle | ||
git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status | ||
git submodule status TMessagesProj/jni/libvpx > libvpx_status | ||
git submodule status TMessagesProj/jni/dav1d > libdav1d_status | ||
- name: FFmpeg Cache | ||
id: cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
TMessagesProj/jni/ffmpeg/build | ||
TMessagesProj/jni/libvpx/build | ||
key: ${{ hashFiles('ffmpeg_status', 'libvpx_status', 'TMessagesProj/jni/*ffmpeg*.sh', 'TMessagesProj/jni/*libvpx*.sh', 'TMessagesProj/jni/patches/ffmpeg/*') }} | ||
TMessagesProj/jni/dav1d/build | ||
key: ${{ hashFiles('ffmpeg_status', 'libvpx_status', 'libdav1d_status', 'TMessagesProj/jni/*ffmpeg*.sh', 'TMessagesProj/jni/*libvpx*.sh', 'TMessagesProj/jni/*dav1d*.sh', 'TMessagesProj/jni/patches/ffmpeg/*') }} | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
with: | ||
python-version: '3.12' | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
|
@@ -58,23 +54,23 @@ jobs: | |
- name: Native Build | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
sudo apt-get install yasm -y | ||
./run init action ffmpeg | ||
./run init libs libvpx | ||
./run init libs dav1d | ||
./run init libs ffmpeg | ||
boringssl: | ||
name: Native Build (BoringSSL) | ||
runs-on: ubuntu-latest | ||
needs: check | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
- name: Fetch Status | ||
run: | | ||
sed -i 's/\/\///g' settings.gradle | ||
git submodule status TMessagesProj/jni/boringssl > boringssl_status | ||
- name: BoringSSL Cache | ||
id: cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
TMessagesProj/jni/boringssl/build | ||
|
@@ -112,7 +108,7 @@ jobs: | |
- arm64-v8a | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
- name: Fetch Status | ||
run: | | ||
sed -i 's/\/\///g' settings.gradle | ||
|
@@ -121,7 +117,7 @@ jobs: | |
git submodule status TMessagesProj/jni/boringssl > boringssl_status | ||
- name: Native Cache | ||
id: cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
TMessagesProj/src/main/libs | ||
|
@@ -131,15 +127,15 @@ jobs: | |
run: | | ||
git submodule update --init 'TMessagesProj/jni/*' | ||
- name: FFmpeg Cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
with: | ||
path: | | ||
TMessagesProj/jni/ffmpeg/build | ||
TMessagesProj/jni/libvpx/build | ||
key: ${{ hashFiles('ffmpeg_status', 'libvpx_status', 'TMessagesProj/jni/*ffmpeg*.sh', 'TMessagesProj/jni/*libvpx*.sh', 'TMessagesProj/jni/patches/ffmpeg/*') }} | ||
- name: BoringSSL Cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
with: | ||
path: | | ||
|
@@ -177,7 +173,7 @@ jobs: | |
- native | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
|
@@ -196,13 +192,13 @@ jobs: | |
git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status | ||
git submodule status TMessagesProj/jni/boringssl > boringssl_status | ||
- name: Native Cache (armeabi-v7a) | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
TMessagesProj/src/main/libs | ||
key: ${{ hashFiles('TMessagesProj/jni/**', 'ffmpeg_status', 'boringssl_status') }}-armeabi-v7a | ||
- name: Native Cache (arm64-v8a) | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
TMessagesProj/src/main/libs | ||
|
@@ -212,7 +208,7 @@ jobs: | |
sed -i -e "s/16384/6144/g" gradle.properties | ||
echo "sdk.dir=${ANDROID_HOME}" >> local.properties | ||
- name: Gradle cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.gradle | ||
key: gradle-${{ hashFiles('**/*.gradle') }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,36 +8,32 @@ on: | |
- '**.xml' | ||
|
||
jobs: | ||
check: | ||
name: Check Access | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: "Check access" | ||
uses: "lannonbr/[email protected]" | ||
with: | ||
permission: "write" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
ffmpeg: | ||
name: Native Build (FFmpeg) | ||
runs-on: ubuntu-latest | ||
needs: check | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
- name: Fetch Status | ||
run: | | ||
sed -i 's/\/\///g' settings.gradle | ||
git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status | ||
git submodule status TMessagesProj/jni/libvpx > libvpx_status | ||
git submodule status TMessagesProj/jni/dav1d > libdav1d_status | ||
- name: FFmpeg Cache | ||
id: cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
TMessagesProj/jni/ffmpeg/build | ||
TMessagesProj/jni/libvpx/build | ||
key: ${{ hashFiles('ffmpeg_status', 'libvpx_status', 'TMessagesProj/jni/*ffmpeg*.sh', 'TMessagesProj/jni/*libvpx*.sh', 'TMessagesProj/jni/patches/ffmpeg/*') }} | ||
TMessagesProj/jni/dav1d/build | ||
key: ${{ hashFiles('ffmpeg_status', 'libvpx_status', 'libdav1d_status', 'TMessagesProj/jni/*ffmpeg*.sh', 'TMessagesProj/jni/*libvpx*.sh', 'TMessagesProj/jni/*dav1d*.sh', 'TMessagesProj/jni/patches/ffmpeg/*') }} | ||
- name: Set up Python 3.12 | ||
uses: actions/setup-python@v5 | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
with: | ||
python-version: '3.12' | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
|
@@ -56,23 +52,24 @@ jobs: | |
- name: Native Build | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
run: | | ||
sudo apt-get install yasm -y | ||
./run init action ffmpeg | ||
./run init libs libvpx | ||
./run init libs dav1d | ||
./run init libs ffmpeg | ||
boringssl: | ||
name: Native Build (BoringSSL) | ||
runs-on: ubuntu-latest | ||
needs: check | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
- name: Fetch Status | ||
run: | | ||
sed -i 's/\/\///g' settings.gradle | ||
git submodule status TMessagesProj/jni/boringssl > boringssl_status | ||
- name: BoringSSL Cache | ||
id: cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
TMessagesProj/jni/boringssl/build | ||
|
@@ -110,7 +107,7 @@ jobs: | |
- arm64-v8a | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
- name: Fetch Status | ||
run: | | ||
sed -i 's/\/\///g' settings.gradle | ||
|
@@ -119,7 +116,7 @@ jobs: | |
git submodule status TMessagesProj/jni/boringssl > boringssl_status | ||
- name: Native Cache | ||
id: cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
TMessagesProj/src/main/libs | ||
|
@@ -129,15 +126,15 @@ jobs: | |
run: | | ||
git submodule update --init 'TMessagesProj/jni/*' | ||
- name: FFmpeg Cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
with: | ||
path: | | ||
TMessagesProj/jni/ffmpeg/build | ||
TMessagesProj/jni/libvpx/build | ||
key: ${{ hashFiles('ffmpeg_status', 'libvpx_status', 'TMessagesProj/jni/*ffmpeg*.sh', 'TMessagesProj/jni/*libvpx*.sh', 'TMessagesProj/jni/patches/ffmpeg/*') }} | ||
- name: BoringSSL Cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
if: steps.cache.outputs.cache-hit != 'true' | ||
with: | ||
path: | | ||
|
@@ -175,7 +172,7 @@ jobs: | |
- native | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4 | ||
- name: Set up JDK 17 | ||
uses: actions/setup-java@v3 | ||
with: | ||
|
@@ -194,13 +191,13 @@ jobs: | |
git submodule status TMessagesProj/jni/ffmpeg > ffmpeg_status | ||
git submodule status TMessagesProj/jni/boringssl > boringssl_status | ||
- name: Native Cache (armeabi-v7a) | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
TMessagesProj/src/main/libs | ||
key: ${{ hashFiles('TMessagesProj/jni/**', 'ffmpeg_status', 'boringssl_status') }}-armeabi-v7a | ||
- name: Native Cache (arm64-v8a) | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
with: | ||
path: | | ||
TMessagesProj/src/main/libs | ||
|
@@ -210,7 +207,7 @@ jobs: | |
sed -i -e "s/16384/6144/g" gradle.properties | ||
echo "sdk.dir=${ANDROID_HOME}" >> local.properties | ||
- name: Gradle cache | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
with: | ||
path: ~/.gradle | ||
key: gradle-${{ hashFiles('**/*.gradle') }} | ||
|
Oops, something went wrong.