From 113cd8f5977df478d292c7d2d8b75672507e5405 Mon Sep 17 00:00:00 2001 From: "Alexander A. Klimov" Date: Wed, 20 May 2020 11:15:27 +0200 Subject: [PATCH] GitHub actions: build 32-bit .deb packages --- .github/workflows/packages.yml | 34 ++++++++++++++++++++++++++++++++-- 1 file changed, 32 insertions(+), 2 deletions(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 9f9d043fa..33aa12729 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -15,16 +15,22 @@ jobs: distro: - name: debian codename: buster + has32bit: true - name: debian codename: stretch + has32bit: true - name: debian codename: jessie + has32bit: true - name: ubuntu codename: focal + has32bit: false - name: ubuntu codename: bionic + has32bit: true - name: ubuntu codename: xenial + has32bit: true runs-on: ubuntu-latest @@ -59,7 +65,7 @@ jobs: path: deb-icinga2/ccache key: '${{ matrix.distro.name }}/${{ matrix.distro.codename }}-ccache' - - name: Binary + - name: Binary x64 run: | set -exo pipefail if [ -e deb-icinga2/ccache ]; then @@ -73,7 +79,19 @@ jobs: registry.icinga.com/build-docker/${{ matrix.distro.name }}/${{ matrix.distro.codename }} \ icinga-build-deb-binary - - name: Test + - name: Binary x86 + if: matrix.distro.has32bit + run: | + set -exo pipefail + docker run --rm \ + -v "$(pwd)/deb-icinga2:/deb-icinga2" \ + -w /deb-icinga2 \ + -e ICINGA_BUILD_PROJECT=icinga2 \ + -e ICINGA_BUILD_TYPE=snapshot \ + registry.icinga.com/build-docker/${{ matrix.distro.name }}/${{ matrix.distro.codename }}:x86 \ + icinga-build-deb-binary + + - name: Test x64 run: | set -exo pipefail docker run --rm \ @@ -84,6 +102,18 @@ jobs: registry.icinga.com/build-docker/${{ matrix.distro.name }}/${{ matrix.distro.codename }} \ icinga-build-test + - name: Test x86 + if: matrix.distro.has32bit + run: | + set -exo pipefail + docker run --rm \ + -v "$(pwd)/deb-icinga2:/deb-icinga2" \ + -w /deb-icinga2 \ + -e ICINGA_BUILD_PROJECT=icinga2 \ + -e ICINGA_BUILD_TYPE=snapshot \ + registry.icinga.com/build-docker/${{ matrix.distro.name }}/${{ matrix.distro.codename }}:x86 \ + icinga-build-test + - name: Artifacts uses: actions/upload-artifact@v1 with: