-
Notifications
You must be signed in to change notification settings - Fork 94
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added a build matrix * Installed Qt through jurplel/install-qt-action (allows for caching)
- Loading branch information
1 parent
ba9a875
commit 15d86b1
Showing
1 changed file
with
41 additions
and
25 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,45 @@ | ||
name: libQGLViewer | ||
on: [push, pull_request] | ||
|
||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
branches: [ main ] | ||
|
||
jobs: | ||
buildQt5: | ||
runs-on: ubuntu-latest | ||
build: | ||
strategy: | ||
matrix: | ||
include: | ||
- runner: 'ubuntu-latest' | ||
qtVersion: '6.2.2' | ||
- runner: 'ubuntu-latest' | ||
qtVersion: '5.15.2' | ||
# - runner: 'macOS-11' | ||
# qtVersion: '6.2.2' | ||
- runner: 'windows-2019' | ||
qtVersion: '6.2.2' | ||
qtArch: 'win64_msvc2019_64' | ||
- runner: 'windows-2019' | ||
qtVersion: '5.15.2' | ||
qtArch: 'win64_msvc2019_64' | ||
runs-on: ${{ matrix.runner }} | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: sudo apt-get install -y build-essential qtbase5-dev libglu1-mesa-dev | ||
- name: Build all | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Install Qt | ||
uses: jurplel/install-qt-action@v3 | ||
with: | ||
version: ${{ matrix.qtVersion }} | ||
arch: ${{ matrix.qtArch }} | ||
cache: true | ||
|
||
- name: Install GLU | ||
if: startsWith(matrix.runner, 'ubuntu') | ||
run: sudo apt-get install -y libglu1-mesa-dev | ||
|
||
- name: Build QGLViewer | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. | ||
make all | ||
buildQt6: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
- name: Install dependencies | ||
run: sudo apt-get install -y build-essential qt6-base-dev libglu1-mesa-dev | ||
- name: Build all | ||
run: | | ||
mkdir build | ||
cd build | ||
cmake .. | ||
make all | ||
mkdir build | ||
cmake -B build -S . | ||
cmake --build build --config Release |