-
Notifications
You must be signed in to change notification settings - Fork 0
86 lines (84 loc) · 3.09 KB
/
non_regression.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
name: Non regression tests for TimedPetriNetEditor
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
non_regression_linux:
name: Non regression tests on Linux
runs-on: ubuntu-20.04
steps:
- name: Install system packages
run: |
sudo apt-get update
sudo apt-get install libdw-dev pkg-config libmosquitto-dev libx11-dev libxinerama-dev
sudo apt-get install libasound2-dev libxrandr-dev libxi-dev libgl1-mesa-dev libglu1-mesa-dev libxcursor-dev
sudo apt-get install libwayland-dev libxkbcommon-x11-dev libglfw3-dev libxcursor-dev libxinerama-dev
- name: Checkout TimedPetriNetEditor
uses: actions/checkout@v4
with:
submodules: true
- name: Compile TimedPetriNetEditor
run: |
make download-external-libs
make compile-external-libs
V=1 make -j`nproc --all`
V=1 sudo make install
- name: Download, configure and install Google test
run: |
wget https://github.com/google/googletest/archive/release-1.11.0.tar.gz
tar xf release-1.11.0.tar.gz
cd googletest-release-1.11.0
cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON .
sudo make install
- name: Do non regression tests
run: |
cd tests
V=1 make -j`nproc --all`
../build/TimedPetriNetEditor-UnitTest
- name: Check if the library can be linked against a project
run: |
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib/
git clone https://github.com/Lecrapouille/LinkAgainstMyLibs.git --recurse-submodules --depth=1
cd LinkAgainstMyLibs/TimedPetriNetEditor
V=1 make -j`nproc --all`
./build/TimedPetriNetEditor
non_regression_macos:
name: Non regression tests on MacOS X
runs-on: macos-latest
steps:
- name: Install system packages
run: |
brew install pkg-config mosquitto raylib glfw glew
- name: Checkout
uses: actions/checkout@v4
with:
submodules: true
- name: Compile TimedPetriNetEditor
run: |
make download-external-libs
make compile-external-libs
V=1 make -j`sysctl -n hw.logicalcpu`
- name: Download, configure and install Google test
run: |
wget https://github.com/google/googletest/archive/release-1.11.0.tar.gz
tar xf release-1.11.0.tar.gz
cd googletest-release-1.11.0
cmake -DBUILD_SHARED_LIBS=OFF -DCMAKE_POSITION_INDEPENDENT_CODE=ON .
sudo make install
- name: Do non regression tests
run: |
cd tests
V=1 check -j`sysctl -n hw.logicalcpu`
../build/TimedPetriNetEditor-UnitTest
- name: Create the DMG file
run: |
hdiutil create -format UDZO -srcfolder build/TimedPetriNetEditor.app build/TimedPetriNetEditor.dmg
- name: Deploy
uses: actions/upload-artifact@v3
with:
name: TimedPetriNetEditor-macos
path: build/TimedPetriNetEditor.dmg