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
Changes from 1 commit
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
Next Next commit
github actions: add build description
Add basic builds on Ubuntu and macOS hosts for Github's CI
automation. Each builds with either GNU Autotools or the
plain Makefile, and then builds the documentation.

Based on similar code from libopusenc, borrowing steps
from the ci scripts directory and .travis-ci.yml.
rillian committed Jan 15, 2022
commit 72dd55611cc991dcd857965ebb76ce377de2f8be
75 changes: 75 additions & 0 deletions .github/workflows/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
name: GitHub CI

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

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

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

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

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

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

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

steps:
- uses: actions/checkout@v2

- 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

- 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
run: |
make -C doc