-
Notifications
You must be signed in to change notification settings - Fork 0
70 lines (56 loc) · 1.98 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
69
70
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/setup-msbuild@v1.0.2
- 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\maxAutomatedTests\${{ matrix.platform }}\${{ matrix.configuration }}\maxAutomatedTests.exe
Linux:
strategy:
matrix:
platform: [X86-64] # TODO: Add X86, AArch32, and AArch64 platforms
compiler: [clang++, g++]
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: Build
env:
CXX: ${{ matrix.compiler }}
working-directory: ${{ github.workspace }}/Projects/Make
run: make
- name: Test
run: ${{ github.workspace }}/Projects/Make/maxAutomatedTests
# TODO: Should this use perf stat record?
# TODO: GitHub won't let us run perf stat on their machines. That is fine, really. We should host our own stable hardware.
# Disable until we are hosting our own.
#- name: Performance Test
# run: perf stat ${{ github.workspace }}/Projects/Make/maxAutomatedTests > perf_stats
#- name: Upload performance test artifact
# uses: actions/upload-artifact@v3
# with:
# name: perf_stats