-
Notifications
You must be signed in to change notification settings - Fork 55
52 lines (49 loc) · 1.45 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
name: CI
on: [push, pull_request]
jobs:
ubuntu2204:
name: "Ubuntu 22.04"
runs-on: ubuntu-22.04
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
- name: dependencies
run: |
sudo apt-get update
sudo apt-get install g++ libz-dev libboost-dev libwxgtk3.0-gtk3-dev swig libxy-dev liblua5.3-dev lua5.3
curl -LsS -o tests/catch.hpp https://github.com/philsquared/Catch/releases/download/v1.10.0/catch.hpp
- name: build
run: |
g++ --version
autoreconf -i
./configure LUA=/usr/bin/lua5.3 LUA_INCLUDE=-I/usr/include/lua5.3 LUA_LIB=-llua5.3
make -j2
sudo make install
- name: test
run: |
make -j2 check
export LD_LIBRARY_PATH=/usr/local/lib
cfityk --version
clang39:
name: "Ubuntu 18.04, Clang"
runs-on: ubuntu-18.04
if: "!contains(github.event.head_commit.message, '[skip ci]')"
env:
CC: clang
CXX: clang++
steps:
- uses: actions/checkout@v2
- name: dependencies
run: |
sudo apt-get install clang cmake libz-dev libboost-dev liblua5.2-dev lua5.2
- name: build
run: |
$CXX --version
cmake --version
cmake . -DDOWNLOAD_XYLIB=ON -DDOWNLOAD_LUA=OFF -DDOWNLOAD_ZLIB=OFF
make VERBOSE=1
sudo make install
- name: test
run: |
export LD_LIBRARY_PATH=/usr/local/lib
cfityk --version