Skip to content

Commit d5ae949

Browse files
authored
Merge pull request #199 from hwsmm/ubuntu-arm-ver
Use ARM runners and Ubuntu 20.04 ARM
2 parents 96486c7 + 5f4ba18 commit d5ae949

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

.github/workflows/build.yml

+9-14
Original file line numberDiff line numberDiff line change
@@ -14,25 +14,21 @@ jobs:
1414
fail-fast: false
1515
matrix:
1616
platform:
17-
- { name: win-x64, os: windows-latest, flags: -A x64 }
18-
- { name: win-x86, os: windows-latest, flags: -A Win32 }
19-
- { name: win-arm64, os: windows-latest, flags: -A ARM64 }
20-
- { name: linux-x64, os: ubuntu-20.04, flags: -GNinja, target_apt_arch: ":amd64" }
21-
- { name: linux-x86, os: ubuntu-20.04, flags: -GNinja -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32", target_apt_arch: ":i386" }
22-
- { name: linux-arm64, os: ubuntu-20.04, flags: -GNinja, target_apt_arch: ":arm64", container: arm64v8/ubuntu, docker_platform: linux/arm64/v8 }
23-
- { name: linux-arm, os: ubuntu-20.04, flags: -GNinja, target_apt_arch: ":armhf", container: arm32v7/ubuntu, docker_platform: linux/arm/v7 }
24-
- { name: osx-x64, os: macos-latest, flags: -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 }
17+
- { name: win-x64, os: windows-latest, flags: -A x64 }
18+
- { name: win-x86, os: windows-latest, flags: -A Win32 }
19+
- { name: win-arm64, os: windows-latest, flags: -A ARM64 }
20+
- { name: linux-x64, os: ubuntu-20.04, flags: -GNinja, target_apt_arch: ":amd64" }
21+
- { name: linux-x86, os: ubuntu-20.04, flags: -GNinja -DCMAKE_C_FLAGS=-m32 -DCMAKE_CXX_FLAGS=-m32", target_apt_arch: ":i386" }
22+
- { name: linux-arm64, os: ubuntu-22.04-arm, flags: -GNinja, target_apt_arch: ":arm64", container: "arm64v8/ubuntu:20.04" }
23+
- { name: linux-arm, os: ubuntu-22.04-arm, flags: -GNinja, target_apt_arch: ":armhf", container: "arm32v7/ubuntu:20.04" }
24+
- { name: osx-x64, os: macos-latest, flags: -DCMAKE_OSX_ARCHITECTURES=x86_64 -DCMAKE_OSX_DEPLOYMENT_TARGET=10.14 }
2525
# NOTE: macOS 11.0 is the first released supported by Apple Silicon.
26-
- { name: osx-arm64, os: macos-latest, flags: -DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 }
26+
- { name: osx-arm64, os: macos-latest, flags: -DCMAKE_OSX_ARCHITECTURES=arm64 -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0 }
2727
steps:
2828
- uses: actions/checkout@v4
2929
with:
3030
submodules: true
3131

32-
- name: Set up QEMU
33-
if: contains(matrix.platform.container, 'arm')
34-
uses: docker/setup-qemu-action@v3
35-
3632
- name: Build (Linux ARM)
3733
if: contains(matrix.platform.container, 'arm')
3834
uses: addnab/docker-run-action@v3
@@ -45,7 +41,6 @@ jobs:
4541
-e RUNNER_OS=${{ runner.os }}
4642
-e FLAGS=${{ matrix.platform.flags }}
4743
-e BUILD_TYPE=${{ env.BUILD_TYPE }}
48-
--platform ${{ matrix.platform.docker_platform }}
4944
run: |
5045
cd /workspace
5146
./External/build.sh

External/build.sh

+2
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ fi
1212

1313
SUDO=$(which sudo || exit 0)
1414

15+
export DEBIAN_FRONTEND=noninteractive
16+
1517
if [[ $RUNNER_OS == 'Linux' ]]; then
1618
# Setup Linux dependencies
1719
if [[ $TARGET_APT_ARCH == :i386 ]]; then

0 commit comments

Comments
 (0)