From b8a9c47f5edf5496d7ac3148fb97325a1c947f91 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc=20Andr=C3=A9=20Tanner?= Date: Thu, 20 Feb 2020 08:04:48 +0100 Subject: ci: add macOS builds --- .github/workflows/macos.yml | 50 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/macos.yml (limited to '.github/workflows') diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml new file mode 100644 index 0000000..5b420ad --- /dev/null +++ b/.github/workflows/macos.yml @@ -0,0 +1,50 @@ +name: macOS + +on: [push, pull_request] + +jobs: + build: + strategy: + matrix: + os: + - macos-10.15 + config: + - "" + - --disable-curses + - --disable-lua + - --disable-tre + - --disable-help + runs-on: ${{ matrix.os }} + env: + CFLAGS_EXTRA: --coverage + steps: + + - name: Checkout + uses: actions/checkout@v2 + + - name: Dependency Homebrew + run: | + brew install \ + libtermkey \ + lua \ + luarocks \ + tre \ + pkg-config + + - name: Dependency LuaRocks + run: | + luarocks install lpeg + luarocks install busted + + - name: Build + run: | + ./configure ${{ matrix.config }} + make + + - name: Test + run: | + make test + + - name: Upload Test Coverage + run: | + bash <(curl -s https://codecov.io/bash) -- cgit v1.2.3