-
Notifications
You must be signed in to change notification settings - Fork 26
46 lines (44 loc) · 1.24 KB
/
build.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
name: build
on: [push]
jobs:
build-unix:
strategy:
matrix:
os: [ubuntu, macos]
compiler: [g++, clang++]
defines: [standard]
exclude:
- os: macos
compiler: g++
name: ${{matrix.os}} ${{matrix.compiler}}
runs-on: ${{matrix.os}}-latest
steps:
- uses: actions/checkout@v1
- name: Update submodules
run: git submodule update --init --recursive
- name: CMake Configure
run: mkdir build && cd build && cmake ..
- name: Build
run: cd build && cmake --build . --config Release
- name: Run unit tests
run: cd build && ./smmalloc_test
- name: Run performance tests
run: cd build && ./smmalloc_perf
build-windows:
runs-on: windows-latest
strategy:
matrix:
arch: [Win32, x64]
defines: [standard]
steps:
- uses: actions/checkout@v1
- name: Update submodules
run: git submodule update --init --recursive
- name: CMake Configure
run: mkdir build && cd build && cmake ..
- name: Build
run: cd build && cmake --build . --config Release
- name: Run unit tests
run: "build/Release/smmalloc_test.exe"
- name: Run performance tests
run: "build/Release/smmalloc_perf.exe"