summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathan Moinvaziri <nathan@nathanm.com>2022-10-11 11:08:38 -0700
committerMark Adler <fork@madler.net>2022-10-11 20:21:50 -0700
commitb85c172e1d3d10dfe911dd2686d4da715070cada (patch)
tree6d9058815823e9c3b4dabcb0547aec61de7104ac
parent76f3536af80b654a6353a706ada652ae7719c8c2 (diff)
downloadzlib-b85c172e1d3d10dfe911dd2686d4da715070cada.tar.gz
CI: Add instances for ARM using QEMU in configure workflow.
-rw-r--r--.github/workflows/configure.yml31
1 files changed, 31 insertions, 0 deletions
diff --git a/.github/workflows/configure.yml b/.github/workflows/configure.yml
index b8b8e0d..c34a82c 100644
--- a/.github/workflows/configure.yml
+++ b/.github/workflows/configure.yml
@@ -21,6 +21,30 @@ jobs:
build-dir: ../build
src-dir: ../zlib
+ - name: Ubuntu GCC ARM SF
+ os: ubuntu-latest
+ compiler: arm-linux-gnueabi-gcc
+ configure-args: --warn
+ chost: arm-linux-gnueabi
+ packages: qemu qemu-user gcc-arm-linux-gnueabi libc-dev-armel-cross
+ qemu-run: qemu-arm -L /usr/arm-linux-gnueabi
+
+ - name: Ubuntu GCC ARM HF
+ os: ubuntu-latest
+ compiler: arm-linux-gnueabihf-gcc
+ configure-args: --warn
+ chost: arm-linux-gnueabihf
+ packages: qemu qemu-user gcc-arm-linux-gnueabihf libc-dev-armhf-cross
+ qemu-run: qemu-arm -L /usr/arm-linux-gnueabihf
+
+ - name: Ubuntu GCC AARCH64
+ os: ubuntu-latest
+ compiler: aarch64-linux-gnu-gcc
+ configure-args: --warn
+ chost: aarch64-linux-gnu
+ packages: qemu qemu-user gcc-aarch64-linux-gnu libc-dev-arm64-cross
+ qemu-run: qemu-aarch64 -L /usr/aarch64-linux-gnu
+
- name: macOS GCC
os: macos-latest
compiler: gcc-9
@@ -30,6 +54,12 @@ jobs:
- name: Checkout repository
uses: actions/checkout@v3
+ - name: Install packages (Ubuntu)
+ if: runner.os == 'Linux' && matrix.packages
+ run: |
+ sudo apt-get update
+ sudo apt-get install -y ${{ matrix.packages }}
+
- name: Generate project files
run: |
[ -d ${{ matrix.build-dir || '.' }} ] || mkdir ${{ matrix.build-dir || '.' }}
@@ -37,6 +67,7 @@ jobs:
${{ matrix.src-dir || '.' }}/configure ${{ matrix.configure-args }}
env:
CC: ${{ matrix.compiler }}
+ CHOST: ${{ matrix.chost }}
- name: Compile source code
run: make -j2