-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (45 loc) · 1.61 KB
/
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
name: Ubuntu
on:
push:
branches: [ "master", "develop" ]
pull_request:
branches: [ "master", "develop" ]
workflow_call:
inputs:
version:
description: 'Version to build'
default: 2.x.x
type: string
env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v3
- name: Prepare Environement
run: |
sudo apt-get update
sudo apt install qt6-base-dev --fix-missing
sudo apt-get install libqt6websockets6-dev --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 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-dev libcairo2-dev --fix-missing
- name: Checkout submodules
run: git submodule update --init --recursive
- name: Configure CMake
run: |
echo 'Generating makefile'
mkdir build
cd build
echo 'Version : ' ${{ inputs.version }}
cmake .. -DCMAKE_BUILD_TYPE=Release -DSUGARBOX_VERSION='${{ inputs.version }}'
make package
ls -l
- name: Archive
uses: actions/upload-artifact@v3
with:
name: SugarboxV2Ubuntu
path: ${{github.workspace}}/build/*.tar.gz