summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-06-16 08:05:38 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-06-16 12:32:06 +0200
commitbfa0b4376c02fc741b482b0ed4aa94fb7b0e6919 (patch)
treee679ef586c00b12393a5c890e758e96bcf2fc69e /.github
parent70c1a002e38e376b1d7ee10a5caf4b02f41f663e (diff)
downloadweechat-bfa0b4376c02fc741b482b0ed4aa94fb7b0e6919.zip
core: add build on macOS in CI
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ci.yml53
1 files changed, 50 insertions, 3 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index f64aa859f..5ec1c2f89 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -6,13 +6,13 @@ on:
jobs:
- build:
+ build_linux:
- name: ${{ matrix.config.name }}
- runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
+ os:
+ - ubuntu-20.04
config:
- { name: "cmake_gcc", cc: "gcc", cxx: "g++", tool: "cmake", args: "" }
- { name: "cmake_gcc_no_nls", cc: "gcc", cxx: "g++", tool: "cmake", args: "-DENABLE_NLS=OFF" }
@@ -22,6 +22,9 @@ jobs:
- { name: "autotools_gcc", cc: "gcc", cxx: "g++", tool: "autotools", args: "" }
- { name: "autotools_clang", cc: "clang", cxx: "clang++", tool: "autotools", args: "" }
+ name: ${{ matrix.config.name }} on ${{ matrix.os }}
+ runs-on: ${{ matrix.os }}
+
steps:
- uses: actions/checkout@v2
@@ -76,3 +79,47 @@ jobs:
lcov --remove coverage.info '/usr/*' --output-file coverage.info
lcov --list coverage.info
bash <(curl -s https://codecov.io/bash) -f coverage.info || echo 'Codecov error'
+
+ build_macos:
+
+ strategy:
+ fail-fast: false
+ matrix:
+ os:
+ - macos-latest
+ config:
+ - { name: "cmake_gcc", cc: "gcc", cxx: "g++" }
+ - { name: "cmake_clang", cc: "clang", cxx: "clang++" }
+
+ name: ${{ matrix.config.name }} on ${{ matrix.os }}
+ runs-on: ${{ matrix.os }}
+
+ steps:
+
+ - uses: actions/checkout@v2
+
+ - name: Install dependencies
+ run: |
+ brew update
+ brew install asciidoctor lua ruby
+
+ - name: Build
+ env:
+ CC: ${{ matrix.config.cc }}
+ CXX: ${{ matrix.config.cxx }}
+ run: |
+ mkdir build-tmp && cd build-tmp
+ cmake .. -DENABLE_MAN=ON -DENABLE_DOC=ON -DENABLE_PHP=OFF
+ make VERBOSE=1 -j2
+ sudo make install
+
+ - name: Run WeeChat
+ env:
+ TERM: xterm-256color
+ run: |
+ weechat --help
+ weechat-curses --help
+ weechat --colors
+ weechat --license
+ weechat --version
+ weechat --temp-dir --run-command "/debug dirs;/debug libs" --run-command "/quit"