ericw-tools/.github/workflows/cmake.yml

38 lines
815 B
YAML

name: CMake
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
# Don't cancel the macOS build if the Linux build fails, etc.
fail-fast: false
matrix:
os: [ubuntu-20.04, macos-10.15]
use-asan: [YES, NO]
env:
# Expose to the build-*.sh in an environment variable
USE_ASAN: ${{ matrix.use-asan }}
steps:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Linux Build
if: runner.os == 'Linux'
run: |
sudo apt-get update
# for Sphinx
sudo apt-get install -y python3-pip
./build-linux-64.sh
- name: macOS Build
if: runner.os == 'macOS'
run: |
./build-osx.sh