2022-07-17 00:11:07 +00:00
|
|
|
name: Build Test
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
pull_request:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
2022-08-03 04:37:15 +00:00
|
|
|
Build-Qtk:
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
os: [ubuntu-latest, windows-latest]
|
|
|
|
runs-on: ${{ matrix.os }}
|
2022-07-17 00:11:07 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
|
|
|
|
- name: Install Qt
|
|
|
|
uses: jurplel/install-qt-action@v2
|
|
|
|
with:
|
|
|
|
version: '6.2.3'
|
|
|
|
|
|
|
|
- name: Install Assimp
|
2022-08-03 04:37:15 +00:00
|
|
|
if: ${{ matrix.os }} == ubuntu-latest
|
2022-07-17 00:11:07 +00:00
|
|
|
run: |
|
|
|
|
sudo apt install libassimp-dev -y
|
|
|
|
|
2022-08-03 04:37:15 +00:00
|
|
|
- name: Install Assimp Windows
|
|
|
|
if: ${{ matrix.os }} == windows-latest
|
|
|
|
run: |
|
|
|
|
git clone https://github.com/Microsoft/vcpkg.git
|
|
|
|
cd vcpkg
|
|
|
|
./bootstrap-vcpkg.sh
|
|
|
|
./vcpkg integrate install
|
|
|
|
vcpkg install assimp
|
|
|
|
|
|
|
|
|
2022-07-17 00:11:07 +00:00
|
|
|
- name: Build Qtk
|
2022-08-03 04:37:15 +00:00
|
|
|
shell: bash
|
2022-07-17 00:11:07 +00:00
|
|
|
run: |
|
|
|
|
mkdir build && cd build
|
|
|
|
cmake .. -DCMAKE_PREFIX_PATH=/home/runner/work/qtk/Qt/6.2.3/gcc_64/ && cmake --build .
|