Skip to content

Commit

Permalink
feat: add matrix for native ARM64 builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jae1911 committed Jan 17, 2025
1 parent 4a0a737 commit 140b365
Showing 1 changed file with 6 additions and 22 deletions.
28 changes: 6 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,12 @@ on:
types: [published]

jobs:
buildLinuxArm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up QEMU
uses: docker/setup-qemu-action@v2
with:
platforms: arm64
- name: Build Native Linux for ARM
run: |
docker run --rm --privileged tonistiigi/binfmt --install all
docker run --rm -v $(pwd):/workspace -w /workspace multiarch/debian-debootstrap:arm64-buster sh -c "
apt update &&
apt install -y make gcc g++ unzip &&
make -f Makefile.gnu all"
- uses: actions/upload-artifact@v4
with:
path: Dist/
name: arm-dist
retention-days: 1
build_matrix:
strategy:
matrix:
osver: ['ubuntu-latest', 'ubuntu-24.04-arm']
buildLinux:
runs-on: ubuntu-latest
runs-on: ${{ matrix.osver }}
container: debian:buster # Using debian buster environment for glibc backwards compatibility, see https://github.com/Yellow-Dog-Man/FreeImage/pull/12
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -62,7 +46,7 @@ jobs:
name: android-dist
retention-days: 1
buildWindows:
needs: [buildLinux, buildLinuxArm]
needs: [buildLinux]
runs-on: windows-2019
steps:
- uses: actions/checkout@v3
Expand Down

0 comments on commit 140b365

Please sign in to comment.