Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

github actions: add build description #27

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
99 changes: 99 additions & 0 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
name: GitHub CI

on:
push:
pull_request:
schedule:
- cron: '0 0 1 * *'

jobs:
build:
strategy:
matrix:
name:
[
ubuntu-autotools,
ubuntu-cmake,
ubuntu-makefile,
macos-autotools,
macos-cmake,
macos-makefile,
]
include:

- name: ubuntu-autotools
os: ubuntu-latest
build-system: autotools

- name: ubuntu-cmake
os: ubuntu-latest
build-system: cmake

- name: ubuntu-makefile
os: ubuntu-latest
build-system: makefile

- name: macos-autotools
os: macos-latest
build-system: autotools

- name: macos-cmake
os: macos-latest
build-system: cmake

- name: macos-makefile
os: macos-latest
build-system: makefile

runs-on: ${{ matrix.os }}

env:
BUILD: _build

steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Install Linux dependencies
if: startsWith(matrix.os,'ubuntu')
run: |
sudo apt-get update
sudo apt-get install -y libopus-dev libogg-dev libssl-dev
sudo apt-get install -y doxygen graphviz

- name: Install macOS dependencies
if: startsWith(matrix.os,'macos')
run: |
brew bundle

- name: Build with Autotools
if: startsWith(matrix.build-system,'autotools')
run: |
./autogen.sh
./configure
make
make check

- name: distcheck with Autotools
if: startsWith(matrix.build-system,'autotools')
run: |
make distcheck

- name: Build with Makefile
if: startsWith(matrix.build-system,'makefile')
run: |
make -C unix
make -C unix check

- name: Build Documentation
if: ${{ ! startsWith(matrix.build-system,'cmake') }}
run: |
make -C doc

- name: Build with CMake
if: startsWith(matrix.build-system,'cmake')
run: |
cmake -S . -B ${{ env.BUILD }}
cmake --build ${{ env.BUILD }}
ctest --test-dir ${{ env.BUILD }} -V -C Debug
2 changes: 1 addition & 1 deletion Brewfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ brew 'autoconf'
brew 'automake'
brew 'libtool'
brew 'pkg-config'
brew 'cmake@3.16'
brew 'cmake'
brew 'doxygen'