mirror of
https://github.com/troglobit/libite.git
synced 2026-10-01 05:22:34 +07:00
72 lines
1.9 KiB
YAML
72 lines
1.9 KiB
YAML
name: Bob the Builder
|
|
|
|
# Run on all branches, including all pull requests, except the 'dev'
|
|
# branch since that's where we run Coverity Scan (limited tokens/day)
|
|
on:
|
|
push:
|
|
branches:
|
|
- '**'
|
|
- '!dev'
|
|
pull_request:
|
|
branches:
|
|
- '**'
|
|
|
|
jobs:
|
|
build:
|
|
# Verify we can build on latest Ubuntu with both gcc and clang
|
|
name: ${{ matrix.compiler }}
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
compiler: [gcc, clang]
|
|
fail-fast: false
|
|
env:
|
|
MAKEFLAGS: -j3
|
|
CC: ${{ matrix.compiler }}
|
|
steps:
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt-get -y update
|
|
sudo apt-get -y install tree doxygen
|
|
- uses: actions/checkout@v4
|
|
- name: Configure
|
|
run: |
|
|
./autogen.sh
|
|
./configure --prefix= --disable-silent-rules
|
|
- name: Build
|
|
run: |
|
|
make
|
|
- name: Install to ~/tmp and Inspect
|
|
run: |
|
|
DESTDIR=~/tmp make install-strip
|
|
tree ~/tmp
|
|
- name: Run Unit Tests
|
|
run: |
|
|
make check || (cat test/test-suite.log; false)
|
|
- name: Upload Test Results
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: libite-test-${{ matrix.compiler }}
|
|
path: test/*
|
|
debian:
|
|
name: Verify Debian Package
|
|
runs-on: ubuntu-latest
|
|
container: debian:stable
|
|
env:
|
|
MAKEFLAGS: -j3
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Installing dependencies
|
|
run: |
|
|
apt-get update
|
|
apt-get install -y build-essential autoconf automake pkg-config doxygen \
|
|
dpkg-dev debhelper devscripts
|
|
- name: Building Debian package
|
|
run: |
|
|
./autogen.sh
|
|
./configure
|
|
make check || (cat test/test-suite.log; false)
|
|
make distcheck
|
|
make package
|
|
cat ../*.changes
|