forked from mjwybrow/adaptagrams
-
Notifications
You must be signed in to change notification settings - Fork 3
64 lines (55 loc) · 1.23 KB
/
ci.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: CI
on:
push:
pull_request:
types: [opened, reopened]
defaults:
run:
shell: bash
jobs:
CI:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
max-parallel: 1
matrix:
os: [ubuntu-20.04, macos-11, windows-2022]
steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Build(cmake)
run: |
pushd cola
mkdir -p build
pushd build
cmake ..
cmake --build .
popd
popd
- name: Run unit tests
run: |
pushd cola
mkdir -p build_tests
pushd build_tests
cmake -DENABLE_TESTS=ON ..
cmake --build .
ctest --output-on-failure
popd
popd
- name: Build(make)
run: |
pushd cola
./autogen.sh
popd
- name: Set up Python 3.11.6
if: runner.os == 'Linux'
uses: actions/setup-python@v4
with:
python-version: 3.11.6
- name: Build bindings(webassembly)
if: runner.os == 'Linux'
run: |
pushd cola/bindings/webassembly/libavoid-js/
npm install
python3.11 ./tools/generate.py