-
Notifications
You must be signed in to change notification settings - Fork 2
57 lines (47 loc) · 2.22 KB
/
build_ubuntu.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
name: Build Ubuntu
on:
workflow_call:
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Prepare Environement
run: |
sudo apt-get update
sudo apt install qtbase5-dev --fix-missing
sudo apt-get install libqt5websockets5-dev xvfb --fix-missing
sudo apt-get install udev build-essential libpthread-stubs0-dev libgl1-mesa-dev libx11-dev libxrandr-dev libfreetype6-dev libglew-dev libjpeg-dev libxi-dev --fix-missing
sudo apt-get install xorg-dev libx11-xcb-dev libxcb-render0-dev libxcb-render-util0-dev libxcb-xkb-dev libxcb-icccm4-dev libxcb-image0-dev libxcb-keysyms1-dev libxcb-randr0-dev libxcb-shape0-dev libxcb-sync-dev libxcb-xfixes0-dev libxcb-xinerama0-dev libxcb-dri3-dev libxcb-util-dev --fix-missing
sudo apt-get install libxinerama-dev libxcursor-dev --fix-missing
sudo apt-get install libudev-dev libglu1-mesa-dev libsecret-1-dev libnotify-dev --fix-missing
sudo apt-get install checkinstall libtiff5-dev ubuntu-restricted-extras freeglut3 freeglut3-dev libcairo2-dev --fix-missing
sudo apt-get install libgconf2-dev --fix-missing
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Configure a build
run: |
echo 'Generating makefile'
mkdir build
cd build
cmake .. -DCMAKE_BUILD_TYPE=Release -DGENERATE_UNITTESTS=TRUE
make all
ls -l
- name: Install
# Build your program with the given configuration
run: |
cmake --install ${{github.workspace}}/build
- name: Archive
uses: actions/upload-artifact@v3
with:
name: CPCCore_linux
path: |
${{github.workspace}}/build/UnitTests/Release/unitTests
${{github.workspace}}/build/UnitTests/Release/TestConf.ini
${{github.workspace}}/build/UnitTests/Release/res/
${{github.workspace}}/build/UnitTests/Release/CONF/
${{github.workspace}}/build/UnitTests/Release/CART/
${{github.workspace}}/build/UnitTests/Release/ROM/