2020-03-31 23:07:06 +08:00
|
|
|
name: C/C++ CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ master ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
ubuntu:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install deps
|
|
|
|
run: |
|
2020-06-18 23:09:47 +08:00
|
|
|
sudo apt install gettext libncurses5-dev libpcre2-dev python3-pip
|
|
|
|
sudo pip3 install pexpect
|
2020-03-31 23:07:06 +08:00
|
|
|
- name: cmake
|
|
|
|
run: |
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake ..
|
|
|
|
- name: make
|
|
|
|
run: |
|
|
|
|
make
|
|
|
|
- name: make test
|
|
|
|
run: |
|
|
|
|
|
2020-11-03 04:04:36 +08:00
|
|
|
|
|
|
|
macos:
|
|
|
|
|
|
|
|
runs-on: macos-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Install deps
|
|
|
|
run: |
|
|
|
|
brew install python3
|
|
|
|
sudo pip3 install pexpect
|
|
|
|
- name: cmake
|
|
|
|
run: |
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake -DWITH_GETTEXT=NO ..
|
|
|
|
- name: make
|
|
|
|
run: |
|
|
|
|
make
|
|
|
|
- name: make test
|
|
|
|
run: |
|
|
|
|
make test
|