Skip to content

Commit

Permalink
Manual github actions to build the GUI
Browse files Browse the repository at this point in the history
  • Loading branch information
pierre-dejoue committed Aug 12, 2023
1 parent 8c16513 commit 1f54a6d
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 8 deletions.
10 changes: 2 additions & 8 deletions .github/workflows/travis.yml → .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: CMake
name: build

on:
push:
Expand All @@ -7,7 +7,6 @@ on:
branches: [ "main" ]

env:
# Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.)
BUILD_TYPE: Debug

jobs:
Expand All @@ -16,17 +15,12 @@ jobs:
matrix:
os: [ ubuntu, macos, windows ]

# The CMake configure and build commands are platform agnostic and should work equally well on Windows or Mac.
# You can convert this to a matrix build if you need cross-platform coverage.
# See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
runs-on: ${{ matrix.os }}-latest
runs-on: ${{matrix.os}}-latest

steps:
- uses: actions/checkout@v3

- name: Configure CMake
# Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make.
# See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DPICROSS_BUILD_CLI=ON -DPICROSS_BUILD_TESTS=ON

- name: Build
Expand Down
29 changes: 29 additions & 0 deletions .github/workflows/gui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: gui

on:
workflow_dispatch:

jobs:
build:
strategy:
matrix:
os: [ ubuntu, macos, windows ]
build_type: [ Debug, Release ]

runs-on: ${{matrix.os}}-latest

steps:
- uses: actions/checkout@v3

- if: matrix.os == 'ubuntu'
name: Install Dependencies
run: |
sudo apt-get update
sudo apt-get install -y xorg-dev freeglut3-dev
- name: Configure CMake
run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{matrix.build_type}} -DPICROSS_BUILD_CLI=ON -DPICROSS_BUILD_GUI=ON

- name: Build
working-directory: ${{github.workspace}}/build
run: cmake --build . --config ${{ matrix.build_type }}

0 comments on commit 1f54a6d

Please sign in to comment.