Adding clangd support. Fixing conan config so moth_ui links properly. #140
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |