diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 3eabd9f..fd60afc 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -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 @@ -28,7 +34,7 @@ jobs: path: artifacts/ package-windows: - runs-on: ubuntu-18.04 + runs-on: ubuntu-20.04 strategy: matrix: arch: diff --git a/build-linux.sh b/build-linux.sh index 3731bd8..cc18e2f 100755 --- a/build-linux.sh +++ b/build-linux.sh @@ -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