Skip to content

Build Apricots

Build Apricots #420

Workflow file for this run

name: Build Apricots
on:
pull_request:
branches:
- runway
push:
branches:
- runway
schedule:
- cron: '07 04 * * *'
jobs:
build-native:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v3
- name: Install Linux dependencies
if: startsWith(matrix.os, 'ubuntu-')
run: |
sudo apt-get update
sudo apt-get install libsdl2-dev autotools-dev libopenal-dev libalure-dev clang-format cppcheck
- name: Install Mac dependencies
if: startsWith(matrix.os, 'macos-')
run: |
brew install sdl2 openal-soft alure autoconf automake
- name: Build
env:
# these are only required for Mac, but hopefully it won't break the
# Linux build
PKG_CONFIG_PATH: "/usr/local/opt/openal-soft/lib/pkgconfig"
LDFLAGS: "-L/usr/local/opt/openal-soft/lib"
CPPFLAGS: "-I/usr/local/opt/openal-soft/include"
run: |
./bootstrap
./configure
make
- name: Checks
if: startsWith(matrix.os, 'ubuntu-')
run: |
make check
build-source:
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v3
- name: Install Linux dependencies
run: |
sudo apt-get update
sudo apt-get install libsdl2-dev libopenal-dev libalure-dev autotools-dev
- name: Build
run: |
./bootstrap
./configure
make dist
- name: Upload source distribution
uses: actions/upload-artifact@v3
with:
name: source
path: apricots-*.tar.gz
if-no-files-found: error