-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (36 loc) · 1.29 KB
/
cmake-build-editor-linux.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
name: Build Editor Linux
on:
workflow_dispatch:
pull_request:
branches: [ main ]
jobs:
build-editor-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: recursive
- name: Install GTK
run: sudo apt-get update; sudo apt-get install libgtk-3-dev
- name: Get Conan
uses: turtlebrowser/[email protected]
- name: Conan setup and install dependencies
working-directory: ${{github.workspace}}/editor
run: |
conan profile detect --force
conan config install ../conan_config
conan install . --build=missing --profile linux_profile
conan install . --build=missing --profile linux_profile -s build_type=Debug
source ./build/Release/generators/conanbuild.sh
- name: Configure CMake for release
working-directory: ${{github.workspace}}/editor
run: cmake --preset conan-release
- name: Build Release
working-directory: ${{github.workspace}}/editor
run: cmake --build --preset conan-release -j
- name: Configure CMake Debug
working-directory: ${{github.workspace}}/editor
run: cmake --preset conan-debug
- name: Build Debug
working-directory: ${{github.workspace}}/editor
run: cmake --build --preset conan-debug -j