-
Notifications
You must be signed in to change notification settings - Fork 1
34 lines (26 loc) · 895 Bytes
/
gui.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
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 }}
- name: Version
working-directory: ${{ github.workspace }}/build
run: cmake --build . --target picross_cli_version --config ${{ matrix.build_type }}