Skip to content

Release 2.0.2

Release 2.0.2 #102

Workflow file for this run

name: build
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on: [push, pull_request]
# A workflow run is made up of one or more jobs that can run
# sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
runs-on: ubuntu-latest
strategy:
matrix:
configure_args: [
"",
"--enable-strict",
"--enable-strict --disable-libudev",
"--enable-strict --disable-libudev --disable-libusb",
"--enable-strict --enable-embedded",
"--enable-strict --enable-debugatr",
]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job
# can access it
- uses: actions/checkout@v3
- name: setup prerequisites
shell: bash
run: |
sudo apt update
sudo apt install \
autoconf-archive \
debhelper-compat \
dpkg-dev \
flex \
libsystemd-dev \
libudev-dev \
libusb-1.0-0-dev \
pkg-config
- name: compile
shell: bash
run: |
./bootstrap
export CFLAGS="-Wall -Wextra -Wformat -Wformat-security -Wmissing-declarations -Wmissing-prototypes -Wold-style-definition -Wpointer-arith -Wredundant-decls -Wshadow -Wstrict-prototypes -Wswitch-enum -Wundef -Wuninitialized -Wunused -Wwrite-strings -Wmissing-noreturn -flto=auto -O2 -Wp,-D_FORTIFY_SOURCE=2"
./configure --disable-polkit ${{ matrix.configure_args }}
make V=1
- name: distcheck
shell: bash
run: |
AM_DISTCHECK_CONFIGURE_FLAGS=--disable-polkit make distcheck