Skip to content

Commit

Permalink
ci: build dav1d
Browse files Browse the repository at this point in the history
  • Loading branch information
omg-xtao committed Nov 21, 2024
1 parent c94099b commit 96abc90
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 75 deletions.
11 changes: 10 additions & 1 deletion .gitea/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,21 @@ jobs:
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@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: Install NDK
if: steps.cache.outputs.cache-hit != 'true'
run: |
Expand All @@ -38,8 +45,10 @@ jobs:
- name: Native Build
if: steps.cache.outputs.cache-hit != 'true'
run: |
pip install meson --break-system-packages
sudo apt-get install yasm -y
./run init libs libvpx
./run init libs dav1d
./run init libs ffmpeg
boringssl:
name: Native Build (BoringSSL)
Expand Down
47 changes: 22 additions & 25 deletions .github/workflows/debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,36 +10,32 @@ on:
- '!.github/workflows/debug.yml'

jobs:
check:
name: Check Access
runs-on: ubuntu-latest
steps:
- name: "Check access"
uses: "lannonbr/repo-permission-check-action@2.0.0"
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'
Expand All @@ -58,23 +54,24 @@ jobs:
- name: Native Build
if: steps.cache.outputs.cache-hit != 'true'
run: |
pip install meson --break-system-packages
sudo apt-get install yasm -y
./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
Expand Down Expand Up @@ -112,7 +109,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
Expand All @@ -121,7 +118,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
Expand All @@ -131,15 +128,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: |
Expand Down Expand Up @@ -177,7 +174,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:
Expand All @@ -196,13 +193,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
Expand All @@ -212,7 +209,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') }}
Expand Down
46 changes: 22 additions & 24 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,36 +8,32 @@ on:
- '**.xml'

jobs:
check:
name: Check Access
runs-on: ubuntu-latest
steps:
- name: "Check access"
uses: "lannonbr/repo-permission-check-action@2.0.0"
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'
Expand All @@ -56,23 +52,25 @@ jobs:
- name: Native Build
if: steps.cache.outputs.cache-hit != 'true'
run: |
pip install meson --break-system-packages
sudo apt-get install yasm -y
./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
Expand Down Expand Up @@ -110,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
Expand All @@ -119,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
Expand All @@ -129,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: |
Expand Down Expand Up @@ -175,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:
Expand All @@ -194,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
Expand All @@ -210,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') }}
Expand Down
Loading

0 comments on commit 96abc90

Please sign in to comment.