diff options
| author | Nathan Moinvaziri <nathan@nathanm.com> | 2022-10-11 11:08:38 -0700 |
|---|---|---|
| committer | Mark Adler <fork@madler.net> | 2022-10-11 20:21:50 -0700 |
| commit | b85c172e1d3d10dfe911dd2686d4da715070cada (patch) | |
| tree | 6d9058815823e9c3b4dabcb0547aec61de7104ac /.github/workflows | |
| parent | 76f3536af80b654a6353a706ada652ae7719c8c2 (diff) | |
| download | zlib-b85c172e1d3d10dfe911dd2686d4da715070cada.tar.gz zlib-b85c172e1d3d10dfe911dd2686d4da715070cada.tar.bz2 zlib-b85c172e1d3d10dfe911dd2686d4da715070cada.zip | |
CI: Add instances for ARM using QEMU in configure workflow.
Diffstat (limited to '.github/workflows')
| -rw-r--r-- | .github/workflows/configure.yml | 31 |
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: | |||
| 21 | build-dir: ../build | 21 | build-dir: ../build |
| 22 | src-dir: ../zlib | 22 | src-dir: ../zlib |
| 23 | 23 | ||
| 24 | - name: Ubuntu GCC ARM SF | ||
| 25 | os: ubuntu-latest | ||
| 26 | compiler: arm-linux-gnueabi-gcc | ||
| 27 | configure-args: --warn | ||
| 28 | chost: arm-linux-gnueabi | ||
| 29 | packages: qemu qemu-user gcc-arm-linux-gnueabi libc-dev-armel-cross | ||
| 30 | qemu-run: qemu-arm -L /usr/arm-linux-gnueabi | ||
| 31 | |||
| 32 | - name: Ubuntu GCC ARM HF | ||
| 33 | os: ubuntu-latest | ||
| 34 | compiler: arm-linux-gnueabihf-gcc | ||
| 35 | configure-args: --warn | ||
| 36 | chost: arm-linux-gnueabihf | ||
| 37 | packages: qemu qemu-user gcc-arm-linux-gnueabihf libc-dev-armhf-cross | ||
| 38 | qemu-run: qemu-arm -L /usr/arm-linux-gnueabihf | ||
| 39 | |||
| 40 | - name: Ubuntu GCC AARCH64 | ||
| 41 | os: ubuntu-latest | ||
| 42 | compiler: aarch64-linux-gnu-gcc | ||
| 43 | configure-args: --warn | ||
| 44 | chost: aarch64-linux-gnu | ||
| 45 | packages: qemu qemu-user gcc-aarch64-linux-gnu libc-dev-arm64-cross | ||
| 46 | qemu-run: qemu-aarch64 -L /usr/aarch64-linux-gnu | ||
| 47 | |||
| 24 | - name: macOS GCC | 48 | - name: macOS GCC |
| 25 | os: macos-latest | 49 | os: macos-latest |
| 26 | compiler: gcc-9 | 50 | compiler: gcc-9 |
| @@ -30,6 +54,12 @@ jobs: | |||
| 30 | - name: Checkout repository | 54 | - name: Checkout repository |
| 31 | uses: actions/checkout@v3 | 55 | uses: actions/checkout@v3 |
| 32 | 56 | ||
| 57 | - name: Install packages (Ubuntu) | ||
| 58 | if: runner.os == 'Linux' && matrix.packages | ||
| 59 | run: | | ||
| 60 | sudo apt-get update | ||
| 61 | sudo apt-get install -y ${{ matrix.packages }} | ||
| 62 | |||
| 33 | - name: Generate project files | 63 | - name: Generate project files |
| 34 | run: | | 64 | run: | |
| 35 | [ -d ${{ matrix.build-dir || '.' }} ] || mkdir ${{ matrix.build-dir || '.' }} | 65 | [ -d ${{ matrix.build-dir || '.' }} ] || mkdir ${{ matrix.build-dir || '.' }} |
| @@ -37,6 +67,7 @@ jobs: | |||
| 37 | ${{ matrix.src-dir || '.' }}/configure ${{ matrix.configure-args }} | 67 | ${{ matrix.src-dir || '.' }}/configure ${{ matrix.configure-args }} |
| 38 | env: | 68 | env: |
| 39 | CC: ${{ matrix.compiler }} | 69 | CC: ${{ matrix.compiler }} |
| 70 | CHOST: ${{ matrix.chost }} | ||
| 40 | 71 | ||
| 41 | - name: Compile source code | 72 | - name: Compile source code |
| 42 | run: make -j2 | 73 | run: make -j2 |
