Skip to content

Build install package #6

Build install package

Build install package #6

Workflow file for this run

---
name: Build install package
on:
release:
types:
- published
workflow_dispatch:
defaults:
run:
shell: bash
env:
LC_ALL: C.UTF-8
jobs:
build-deb-gcc:
name: Build (${{ matrix.os }}, ${{ matrix.cc }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os:
- ubuntu-20.04
- ubuntu-22.04
- ubuntu-24.04
cc:
- gcc
# # Disable Clang (enable required: matrix.include.cc: clang)
# - clang
include:
- cc: gcc
LDFLAGS: ''
CFLAGS: '-O2'
# # Disable Clang (enable required: matrix.cc.clang)
# - cc: clang
# # # Disable ASan, incompatible w/ Valgrind test
# # # https://github.com/google/sanitizers/issues/856#issuecomment-924966052
# # LDFLAGS: '-fsanitize=address -fno-omit-frame-pointer'
# # CFLAGS: '-Og -fsanitize=address -fno-omit-frame-pointer'
# LDFLAGS: ''
# CFLAGS: '-O2'
env:
CC: ${{ matrix.cc }}
LDFLAGS: ${{ matrix.LDFLAGS }}
CFLAGS: ${{ matrix.CFLAGS }}
steps:
- name: Checkout source code
uses: actions/checkout@v4
- name: Fetch update package information
run: sudo apt-get update --assume-yes
- name: Install build-essential and tools
run: sudo apt-get install --assume-yes build-essential debhelper dpkg-dev valgrind clang
- name: Install package dependencies
run: sudo apt-get install --assume-yes libconfig-dev libconfig++-dev libhiredis-dev libjson-c-dev libpq-dev librdkafka-dev
- name: Run testsuite
run: make test
- name: Compile and build bianry
run: make
- name: Build package
run: make package-deb
- name: Upload package(s)
uses: actions/upload-artifact@v4
with:
name: Packages-${{ matrix.os }}
path: |
schaufel_*.buildinfo
schaufel_*.changes
schaufel_*.deb
- name: Release package(s)
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
schaufel_*.buildinfo
schaufel_*.changes
schaufel_*.deb