-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (45 loc) · 1.48 KB
/
c-cpp.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
name: Qt C++
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: windows-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v1
- name: Download catch.hpp and setup Environment Variable
run: |
mkdir Catch2
cd Catch2
$url = "https://github.com/catchorg/Catch2/releases/download/v2.13.10/catch.hpp"
$output = "catch.hpp"
Invoke-WebRequest -Uri $url -OutFile $output
echo "CATCH_INCLUDE_DIR=$(Get-Location)" >> $env:GITHUB_ENV
cd ..
- name: Install Qt
uses: jurplel/install-qt-action@v3
with:
aqtversion: '==3.1.*'
version: '6.5.0'
host: 'windows'
target: 'desktop'
arch: 'win64_msvc2019_64'
dir: '${{ github.workspace }}\Remini\'
cache: 'true'
cache-key-prefix: 'install-qt-action'
setup-python: 'false'
tools: 'tools_cmake'
- name: Configure CMake
run: cmake -DCMAKE_BUILD_TYPE=Release -B="Build" -DQt6_DIR="D:\a\Remini\Remini\Remini\Qt\6.5.0\msvc2019_64"
- name: Build the Qt project with CMake
run: cmake --build build --config Release
- name: Run test
run: |
echo "Workspace path is ${{ github.workspace }}"
cd D:\a\Remini\Remini\Build\CatchTests\Release\
${{ github.workspace }}\Remini\Qt\6.5.0\msvc2019_64\bin\windeployqt.exe ReminiTests.exe
dir
.\ReminiTests.exe