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 6aedcd4
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 46 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: build

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

env:
BUILD_TYPE: Debug

jobs:
build:
strategy:
fail-fast: true
matrix:
os: [ ubuntu, macos, windows ]

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

steps:
- uses: actions/checkout@v3

- name: Configure CMake
run: cmake -B ${{ github.workspace }}/build -DCMAKE_BUILD_TYPE=${{ env.BUILD_TYPE }} -DPICROSS_BUILD_CLI=ON -DPICROSS_BUILD_TESTS=ON

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

- name: Version
working-directory: ${{ github.workspace }}/build
run: cmake --build . --target picross_cli_version --config ${{ env.BUILD_TYPE }}

- name: Test stdutils
working-directory: ${{ github.workspace }}/build
run: cmake --build . --target run_utests_stdutils --config ${{ env.BUILD_TYPE }}

- name: Test picross
working-directory: ${{ github.workspace }}/build
run: cmake --build . --target run_utests_picross --config ${{ env.BUILD_TYPE }}
30 changes: 30 additions & 0 deletions .github/workflows/gui.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: gui

on:
workflow_dispatch:

jobs:
build:
strategy:
fail-fast: false
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_APP=ON

- name: Build
working-directory: ${{ github.workspace }}/build
run: cmake --build . --config ${{ matrix.build_type }}
46 changes: 0 additions & 46 deletions .github/workflows/travis.yml

This file was deleted.

0 comments on commit 6aedcd4

Please sign in to comment.