mirror of
https://github.com/BtbN/FFmpeg-Builds.git
synced 2025-04-30 06:34:32 +02:00
Use native arm runner
This commit is contained in:
parent
96c5b45d90
commit
d2e5277f79
15
.github/workflows/build.yml
vendored
15
.github/workflows/build.yml
vendored
@ -42,16 +42,16 @@ jobs:
|
|||||||
name: Build base image
|
name: Build base image
|
||||||
if: ${{ github.event.inputs.buildOnly != 'true' }}
|
if: ${{ github.event.inputs.buildOnly != 'true' }}
|
||||||
needs: pre_check
|
needs: pre_check
|
||||||
runs-on: ubuntu-latest
|
strategy:
|
||||||
|
fail-fast: false
|
||||||
|
matrix:
|
||||||
|
runner: [ubuntu-latest,ubuntu-24.04-arm]
|
||||||
|
runs-on: ${{ matrix.runner }}
|
||||||
steps:
|
steps:
|
||||||
- name: Free Disk-Space
|
- name: Free Disk-Space
|
||||||
run: df -h && sudo apt-get clean && docker system prune -a -f && sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc && df -h
|
run: df -h && sudo apt-get clean && docker system prune -a -f && sudo rm -rf /usr/local/lib/android /usr/share/dotnet /opt/ghc && df -h
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
- name: Set up QEMU
|
|
||||||
uses: docker/setup-qemu-action@v3
|
|
||||||
with:
|
|
||||||
platforms: arm64
|
|
||||||
- name: Install buildx
|
- name: Install buildx
|
||||||
uses: docker/setup-buildx-action@v3
|
uses: docker/setup-buildx-action@v3
|
||||||
with:
|
with:
|
||||||
@ -73,7 +73,6 @@ jobs:
|
|||||||
- name: Build target base image
|
- name: Build target base image
|
||||||
uses: docker/build-push-action@v6
|
uses: docker/build-push-action@v6
|
||||||
with:
|
with:
|
||||||
platforms: linux/amd64,linux/arm64
|
|
||||||
context: images/base
|
context: images/base
|
||||||
pull: true
|
pull: true
|
||||||
push: true
|
push: true
|
||||||
@ -82,10 +81,12 @@ jobs:
|
|||||||
cache-to: type=registry,mode=max,ref=${{ steps.imagename.outputs.name }}:cache
|
cache-to: type=registry,mode=max,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache
|
cache-from: type=registry,ref=${{ steps.imagename.outputs.name }}:cache
|
||||||
- name: Get download cache key
|
- name: Get download cache key
|
||||||
|
if: ${{ !cancelled() && !contains(matrix.runner, 'arm') }}
|
||||||
id: dl_cache
|
id: dl_cache
|
||||||
run: |
|
run: |
|
||||||
echo "dltagname=$(./util/get_dl_cache_tag.sh)" >> $GITHUB_OUTPUT
|
echo "dltagname=$(./util/get_dl_cache_tag.sh)" >> $GITHUB_OUTPUT
|
||||||
- name: Cache
|
- name: Cache
|
||||||
|
if: ${{ !cancelled() && !contains(matrix.runner, 'arm') }}
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v4
|
||||||
with:
|
with:
|
||||||
path: .cache/downloads
|
path: .cache/downloads
|
||||||
@ -93,11 +94,13 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
download-cache-
|
download-cache-
|
||||||
- name: Update Cache
|
- name: Update Cache
|
||||||
|
if: ${{ !cancelled() && !contains(matrix.runner, 'arm') }}
|
||||||
run: |
|
run: |
|
||||||
set -e
|
set -e
|
||||||
./download.sh
|
./download.sh
|
||||||
./util/clean_cache.sh
|
./util/clean_cache.sh
|
||||||
- name: Cleanup
|
- name: Cleanup
|
||||||
|
if: ${{ !cancelled() && !contains(matrix.runner, 'arm') }}
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
uses: BtbN/delete-untagged-ghcr-action@main
|
uses: BtbN/delete-untagged-ghcr-action@main
|
||||||
with:
|
with:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user