GitHub actions: build 32-bit .deb packages

This commit is contained in:
Alexander A. Klimov 2020-05-20 11:15:27 +02:00
parent 0537543ef3
commit 113cd8f597

View File

@ -15,16 +15,22 @@ jobs:
distro: distro:
- name: debian - name: debian
codename: buster codename: buster
has32bit: true
- name: debian - name: debian
codename: stretch codename: stretch
has32bit: true
- name: debian - name: debian
codename: jessie codename: jessie
has32bit: true
- name: ubuntu - name: ubuntu
codename: focal codename: focal
has32bit: false
- name: ubuntu - name: ubuntu
codename: bionic codename: bionic
has32bit: true
- name: ubuntu - name: ubuntu
codename: xenial codename: xenial
has32bit: true
runs-on: ubuntu-latest runs-on: ubuntu-latest
@ -59,7 +65,7 @@ jobs:
path: deb-icinga2/ccache path: deb-icinga2/ccache
key: '${{ matrix.distro.name }}/${{ matrix.distro.codename }}-ccache' key: '${{ matrix.distro.name }}/${{ matrix.distro.codename }}-ccache'
- name: Binary - name: Binary x64
run: | run: |
set -exo pipefail set -exo pipefail
if [ -e deb-icinga2/ccache ]; then if [ -e deb-icinga2/ccache ]; then
@ -73,7 +79,19 @@ jobs:
registry.icinga.com/build-docker/${{ matrix.distro.name }}/${{ matrix.distro.codename }} \ registry.icinga.com/build-docker/${{ matrix.distro.name }}/${{ matrix.distro.codename }} \
icinga-build-deb-binary 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: | run: |
set -exo pipefail set -exo pipefail
docker run --rm \ docker run --rm \
@ -84,6 +102,18 @@ jobs:
registry.icinga.com/build-docker/${{ matrix.distro.name }}/${{ matrix.distro.codename }} \ registry.icinga.com/build-docker/${{ matrix.distro.name }}/${{ matrix.distro.codename }} \
icinga-build-test 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 - name: Artifacts
uses: actions/upload-artifact@v1 uses: actions/upload-artifact@v1
with: with: