-
Notifications
You must be signed in to change notification settings - Fork 3
53 lines (39 loc) · 1.77 KB
/
build.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
name: Build
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Fetch updates
run: sudo apt-get update && sudo apt-get upgrade
- name: Install OpenGL
run: sudo apt-get install -y libglu1-mesa-dev mesa-common-dev
- name: Install X virtual framebuffer
run: sudo apt-get install -y xvfb
- name: Build debug config
run: |
cmake -B ${{github.workspace}}/Debug_Build -D CMAKE_BUILD_TYPE=Debug -D CMAKE_CXX_FLAGS="-g"
cmake --build ${{github.workspace}}/Debug_Build -j
- name: Run GreenWorld_Debug
working-directory: ${{github.workspace}}/Debug_Build
run: xvfb-run -a ./GreenWorld & sleep 20 ; kill $!
- name: Run CellSim_Debug
working-directory: ${{github.workspace}}/Debug_Build
run: xvfb-run -a ./CellSim & sleep 20 ; kill $!
- name: Run Liquefied_Debug
working-directory: ${{github.workspace}}/Debug_Build
run: xvfb-run -a ./Liquefied & sleep 20 ; kill $!
- name: Build release config
run: |
cmake -B ${{github.workspace}}/Release_Build -D CMAKE_BUILD_TYPE=Release -D CMAKE_CXX_FLAGS="-O3 -Wno-unused-but-set-variable -Wno-unused-result"
cmake --build ${{github.workspace}}/Release_Build -j
- name: Run GreenWorld_Release
working-directory: ${{github.workspace}}/Release_Build
run: xvfb-run -a ./GreenWorld & sleep 20 ; kill $!
- name: Run CellSim_Release
working-directory: ${{github.workspace}}/Release_Build
run: xvfb-run -a ./CellSim & sleep 20 ; kill $!
- name: Run Liquefied_Release
working-directory: ${{github.workspace}}/Release_Build
run: xvfb-run -a ./Liquefied & sleep 20 ; kill $!