Also build DEB packages

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-01-10 14:56:03 +00:00 committed by Megan Wilhite
parent f9c9ca3a16
commit 749dc580d7
2 changed files with 64 additions and 0 deletions

View file

@ -0,0 +1,56 @@
name: Build Salt Packages
on:
- workflow_call
jobs:
rpm:
name: Build Deb
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
arch:
- x86_64
container:
image: debian:10
steps:
- uses: actions/checkout@v3
with:
path: build-deb-pkg
- name: Download System Dependencies
run: |
apt update
apt install -y python3 python3-virtualenv build-essential devscripts debhelper bash-completion
- name: Build Deb
env:
USE_STATIC_REQUIREMENTS: "1"
run: |
cd build-deb-pkg
ln -sf pkg/debian/ .
debuild -uc -us
- name: Upload DEBs
uses: actions/upload-artifact@v3
with:
name: salt-${{ matrix.arch }}-debs
path: ${{ github.workspace }}/*.deb
retention-days: 7
- name: Set Exit Status
if: always()
run: |
python3 -c "import os; os.makedirs('exitstatus', exist_ok=True)"
echo "${{ job.status }}" > exitstatus/${{ github.job }}-linux-${{ matrix.arch }}
- name: Upload Exit Status
if: always()
uses: actions/upload-artifact@v3
with:
name: exitstatus
path: exitstatus
if-no-files-found: error

View file

@ -552,6 +552,13 @@ jobs:
- prepare-ci
uses: ./.github/workflows/build-rpm-packages.yml
build-deb-packages:
name: Build DEB Packages
if: ${{ fromJSON(needs.prepare-ci.outputs.jobs)['self-hosted-runners'] }}
needs:
- prepare-ci
uses: ./.github/workflows/build-deb-packages.yml
build-windows-pkgs:
name: Build Windows Packages
if: ${{ fromJSON(needs.prepare-ci.outputs.jobs)['self-hosted-runners'] }}
@ -948,6 +955,7 @@ jobs:
- build-macos-pkgs
- build-windows-pkgs
- build-rpm-pkgs
- build-deb-pkgs
- almalinux-8
- almalinux-9
- amazonlinux-2