Skip to content

Commit

Permalink
Build packages for linux aarch64 (arm64) (#12)
Browse files Browse the repository at this point in the history
* Build for Linux ARM64

* Build on Ubuntu 20.04

* Fix package

* Try with --arch=aarch64

* Oops
  • Loading branch information
lalinsky committed Nov 4, 2022
1 parent 04d63b6 commit a8fa3e4
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,12 @@ on:

jobs:
package-linux:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
strategy:
matrix:
arch:
- x86_64
- arm64
env:
ARCH: ${{ matrix.arch }}
steps:
Expand All @@ -19,6 +20,11 @@ jobs:
run: |
sudo apt-get update -y && \
sudo apt-get install -y yasm
- name: Install ARM64 compiler
if: env.ARCH == 'arm64'
run: |
sudo apt-get update -y && \
sudo apt-get install -y gcc-aarch64-linux-gnu
- name: Build
run: ./build-linux.sh
- name: Archive production artifacts
Expand All @@ -28,7 +34,7 @@ jobs:
path: artifacts/

package-windows:
runs-on: ubuntu-18.04
runs-on: ubuntu-20.04
strategy:
matrix:
arch:
Expand Down
8 changes: 8 additions & 0 deletions build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,14 @@ case $ARCH in
i686)
FFMPEG_CONFIGURE_FLAGS+=(--cc="gcc -m32")
;;
arm64)
FFMPEG_CONFIGURE_FLAGS+=(
--enable-cross-compile
--cross-prefix=aarch64-linux-gnu-
--target-os=linux
--arch=aarch64
)
;;
arm*)
FFMPEG_CONFIGURE_FLAGS+=(
--enable-cross-compile
Expand Down

0 comments on commit a8fa3e4

Please sign in to comment.