aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/macos.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/macos.yml')
-rw-r--r--.github/workflows/macos.yml50
1 files changed, 50 insertions, 0 deletions
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)