Skip to content

Add CI workflows for DEB, RPM, and AppImage builds #1

Add CI workflows for DEB, RPM, and AppImage builds

Add CI workflows for DEB, RPM, and AppImage builds #1

name: Build DEB Packages
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-20.04, ubuntu-18.04, debian-11, debian-10, debian-9]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up the build environment
run: |
sudo apt-get update
sudo apt-get install -y build-essential autoconf automake libtool \
gtk3-dev libglib2.0-dev gettext desktop-file-utils devscripts fakeroot lintian
- name: Build the DEB package using debuild
run: |
./autogen.sh
./configure
make
debuild -us -uc -b
- name: Test DEB package
run: |
dpkg -i ../xnec2c_*.deb || true # Install DEB package
xnec2c -h # Run test
- name: Upload the DEB package
uses: actions/upload-artifact@v2
with:
name: xnec2c-${{ matrix.os }}.deb
path: ../xnec2c_*.deb