Skip to content

Commit

Permalink
Build for both ARMv7-A and ARMv8-A
Browse files Browse the repository at this point in the history
  • Loading branch information
lalinsky committed Jan 26, 2020
1 parent 889320a commit b2dfd4f
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 4 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ jobs:
arch:
- x86_64
- i686
- armhf
- armv7-a
- armv8-a
env:
ARCH: ${{ matrix.arch }}
steps:
Expand All @@ -24,7 +25,7 @@ jobs:
if: matrix.arch == 'i686'
- name: Install armhf cross-compile dependencies
run: sudo apt-get install gcc-multilib-arm-linux-gnueabihf
if: matrix.arch == 'armhf'
if: startsWith(matrix.arch, 'arm')
- name: Build
run: |
mkdir artifacts
Expand Down Expand Up @@ -95,26 +96,37 @@ jobs:
with:
name: ffmpeg-linux-x86_64
path: artifacts/

- uses: actions/download-artifact@v1
with:
name: ffmpeg-linux-i686
path: artifacts/

- uses: actions/download-artifact@v1
with:
name: ffmpeg-linux-armv7-a
path: artifacts/

- uses: actions/download-artifact@v1
with:
name: ffmpeg-linux-armhf
name: ffmpeg-linux-armv8-a
path: artifacts/

- uses: actions/download-artifact@v1
with:
name: ffmpeg-windows-x86_64
path: artifacts/

- uses: actions/download-artifact@v1
with:
name: ffmpeg-windows-i686
path: artifacts/

- uses: actions/download-artifact@v1
with:
name: ffmpeg-macos-x86_64
path: artifacts/

- name: Make tarballs
run: |
mkdir artifacts/release/
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ Supported platforms:
* Intel i686
* Intel x86\_64
* ARMv7-A (e.g. Raspberry Pi 2)
* ARMv8-A (e.g. Raspberry Pi 3)
- Windows
* Intel i686
* Intel x86\_64
Expand Down
12 changes: 11 additions & 1 deletion build-linux.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,24 @@ case $ARCH in
i686)
FFMPEG_CONFIGURE_FLAGS+=(--cc="gcc -m32")
;;
armhf*)
arm*)
FFMPEG_CONFIGURE_FLAGS+=(
--enable-cross-compile
--cross-prefix=arm-linux-gnueabihf-
--target-os=linux
--arch=arm
)
case $ARCH in
armv7-a)
FFMPEG_CONFIGURE_FLAGS+=(
--cpu=armv7-a
)
;;
armv8-a)
FFMPEG_CONFIGURE_FLAGS+=(
--cpu=armv8-a
)
;;
armhf-rpi2)
FFMPEG_CONFIGURE_FLAGS+=(
--cpu=cortex-a7
Expand Down

0 comments on commit b2dfd4f

Please sign in to comment.