-
Notifications
You must be signed in to change notification settings - Fork 19
67 lines (63 loc) · 1.8 KB
/
ci.yml
File metadata and controls
67 lines (63 loc) · 1.8 KB
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
65
66
67
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@v3
- run: |
sudo apt-get update
sudo apt-get install libz-dev libbz2-dev g++ libboost-dev libwxgtk3.0-gtk3-dev
- name: build
run: |
g++ --version
cmake -DCMAKE_CXX_STANDARD=20 -DUSE_BZIP2=1 -DGUI=1 .
make -j2
sudo make install
export LD_LIBRARY_PATH=/usr/local/lib
xyconv --version
xyconv samples/BT86.raw tmp.xy
clang39:
name: "Ubuntu 18.04, Clang 3.9"
runs-on: ubuntu-18.04
if: "!contains(github.event.head_commit.message, '[skip ci]')"
env:
CC: clang-3.9
CXX: clang++-3.9
steps:
- uses: actions/checkout@v3
- run: sudo apt-get install libz-dev clang-3.9 libboost-dev autoconf automake libtool
- name: build
run: |
$CXX --version
autoreconf -i
./configure --without-gui CXXFLAGS="-std=c++11 -Wall -Wextra"
mkdir build
cd build
cmake -DGUI=OFF ..
make -j2
./xyconv --version
./xyconv ../samples/mjr9_64c.vms tmp.xy
centos:
runs-on: ubuntu-latest
name: "CentOS 7"
container: centos:7
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v3
- name: yum
run: |
yum update -y && yum install -y epel-release
yum install -y gcc-c++ cmake3 make boost-devel zlib-devel bzip2-devel
g++ --version
cmake3 --version
- name: build
run: |
pwd
cmake3 . -DGUI=OFF -DCMAKE_CXX_STANDARD=11
make -j2
./xyconv --version
./xyconv samples/03yag02.mca tmp.xy
make install