forked from opencog/link-grammar
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.06 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Main link-grammar CI
on:
push:
branches: [ master, macos-ci ]
pull_request:
branches: [ master ]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [macos-12, macos-13, macos-14, ubuntu-latest]
name: ${{ matrix.os }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: install packages
id: info
run: |
case $RUNNER_OS in
Linux)
sudo apt-get install autoconf-archive flex libpcre2-dev
cpus=$(nproc)
;;
macOS)
brew install autoconf autoconf-archive automake pcre2 libtool
cpus=$(sysctl -n hw.activecpu)
;;
*)
cpus=1
esac
echo "cpus=$cpus" >> "$GITHUB_OUTPUT"
- name: autogen
run: ./autogen.sh --no-configure
- name: configure
run: ./configure --disable-silent-rules
- name: make
run: make -j${{ steps.info.outputs.cpus }}
- name: make check
run: make check
- name: make distcheck
run: make distcheck