-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (54 loc) · 1.7 KB
/
build-and-test.yaml
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: "Build and test"
on:
push:
branches: [ "tip-of-tree" ]
pull_request:
branches: [ "tip-of-tree" ]
permissions:
contents: read
jobs:
Windows:
strategy:
matrix:
platform: [Win32, x64]
configuration: [Debug, Release]
runner: [windows-2022] # TODO: Add windows-2019, which errors on Platform Toolset = 'v143' missing.
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Add MSBuild to PATH
uses: microsoft/[email protected]
- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
run: msbuild /m /p:Configuration=${{ matrix.configuration }} /p:Platform=${{ matrix.platform }} .\Projects\VisualStudio
- name: Test
run: ${{ github.workspace }}\Projects\VisualStudio\maxGUIAutomatedTests\${{ matrix.platform }}\${{ matrix.configuration }}\maxGUIAutomatedTests.exe
Linux:
strategy:
matrix:
platform: [X86-64] # TODO: Add X86, AArch32, and AArch64 platforms
compiler: [Clang, GCC]
runner: [ubuntu-22.04, ubuntu-20.04]
runs-on: ${{ matrix.runner }}
steps:
- name: Checkout
uses: actions/checkout@v3
#- name: Install Compilers
# run: |
# sudo apt update
# sudo apt install g++-9 g++-10 llvm-10 clang-10
- name: Install Qt 5
run: |
sudo apt update
sudo apt install qtbase5-dev
- name: Find Qt
run: |
find /usr/include -name QWidget
- name: Build
#env:
# CXX: g++-10
working-directory: ${{ github.workspace }}/Projects/Make
run: make
- name: Test
run: ${{ github.workspace }}/Projects/Make/maxGUIAutomatedTests