GHA: Add macOS CI

This commit is contained in:
James McCoy 2020-11-16 21:28:01 -05:00
parent d93e397232
commit 0c022c03ee
No known key found for this signature in database
GPG Key ID: DFE691AE331BA3DB

View File

@ -1,21 +1,31 @@
name: Linux CI
name: CI
on: [push, pull_request]
jobs:
linux:
name: ${{ matrix.flavor }} (cc=${{ matrix.cc }})
runs-on: ubuntu-20.04
build:
name: ${{ matrix.os }} ${{ matrix.flavor }} (cc=${{ matrix.cc }})
strategy:
matrix:
include:
- flavor: asan
cc: clang-11
runner: ubuntu-20.04
os: linux
- flavor: lint
cc: gcc
runner: ubuntu-20.04
os: linux
- flavor: tsan
cc: clang-11
runner: ubuntu-20.04
os: linux
- cc: clang
runner: macos-10.15
os: osx
runs-on: ${{ matrix.runner }}
env:
CC: ${{ matrix.cc }}
CI_OS_NAME: ${{ matrix.os }}
steps:
- uses: actions/checkout@v2
@ -29,6 +39,7 @@ jobs:
sudo add-apt-repository 'deb http://apt.llvm.org/focal/ llvm-toolchain-focal-11 main'
- name: Install apt packages
if: matrix.os == 'linux'
run: |
sudo apt-get update
sudo apt-get install -y autoconf automake build-essential ccache cmake cpanminus cscope gcc-multilib gdb gettext gperf language-pack-tr libtool-bin locales ninja-build pkg-config python3 python3-pip python3-setuptools unzip valgrind xclip