Skip to content

Commit a8fa3e4

Browse files
authored
Build packages for linux aarch64 (arm64) (#12)
* Build for Linux ARM64 * Build on Ubuntu 20.04 * Fix package * Try with --arch=aarch64 * Oops
1 parent 04d63b6 commit a8fa3e4

File tree

2 files changed

+16
-2
lines changed

2 files changed

+16
-2
lines changed

.github/workflows/build.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,12 @@ on:
66

77
jobs:
88
package-linux:
9-
runs-on: ubuntu-18.04
9+
runs-on: ubuntu-20.04
1010
strategy:
1111
matrix:
1212
arch:
1313
- x86_64
14+
- arm64
1415
env:
1516
ARCH: ${{ matrix.arch }}
1617
steps:
@@ -19,6 +20,11 @@ jobs:
1920
run: |
2021
sudo apt-get update -y && \
2122
sudo apt-get install -y yasm
23+
- name: Install ARM64 compiler
24+
if: env.ARCH == 'arm64'
25+
run: |
26+
sudo apt-get update -y && \
27+
sudo apt-get install -y gcc-aarch64-linux-gnu
2228
- name: Build
2329
run: ./build-linux.sh
2430
- name: Archive production artifacts
@@ -28,7 +34,7 @@ jobs:
2834
path: artifacts/
2935

3036
package-windows:
31-
runs-on: ubuntu-18.04
37+
runs-on: ubuntu-20.04
3238
strategy:
3339
matrix:
3440
arch:

build-linux.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ case $ARCH in
2222
i686)
2323
FFMPEG_CONFIGURE_FLAGS+=(--cc="gcc -m32")
2424
;;
25+
arm64)
26+
FFMPEG_CONFIGURE_FLAGS+=(
27+
--enable-cross-compile
28+
--cross-prefix=aarch64-linux-gnu-
29+
--target-os=linux
30+
--arch=aarch64
31+
)
32+
;;
2533
arm*)
2634
FFMPEG_CONFIGURE_FLAGS+=(
2735
--enable-cross-compile

0 commit comments

Comments
 (0)