This repository was archived by the owner on Feb 5, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
123 lines (122 loc) · 3.39 KB
/
compilation.yaml
File metadata and controls
123 lines (122 loc) · 3.39 KB
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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
run-name: Check builds
name: Check builds
on:
workflow_dispatch:
push:
pull_request:
types: [opened]
pull_request_target:
branches:
- "*"
jobs:
macos-build:
strategy:
fail-fast: false
matrix:
os: [macos-11, macos-12]
inja: [ON, OFF]
name: MacOS / ${{ matrix.os }} / clang++ / Inja ${{ matrix.inja }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Install dependencies on ${{ matrix.os }}
run: |
brew install llvm cmake
cmake --version
clang++ --version
- name: Configure with Clang
shell: bash
run: |
CC=clang CXX=clang++ cmake -DUSE_INJA=${{ matrix.inja }} -G 'Unix Makefiles' .
- name: Build
shell: bash
run: |
make
- name: Run tests
shell: bash
run: |
mkdir -p ./tests/bin/log ./bin/log
./tests/Core-Tests
./tests/Core-Tests | sed -E "s/`printf "\033"`\[([0-9]+)(;1)?m//g" | cat > ./bin/log/performance.txt
windows-build:
strategy:
fail-fast: false
matrix:
os: [windows-2019, windows-2022]
cxx: [cl, clang++, g++]
inja: [ON, OFF]
include:
- cxx: clang++
cc: clang
- cxx: g++
cc: gcc
- cxx: cl
cc: cl
name: Windows / ${{ matrix.os }} / ${{ matrix.cxx }} / Inja ${{ matrix.inja }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- uses: ilammy/msvc-dev-cmd@v1.4.1
- name: Compilers setup
run: |
choco install llvm
choco install mingw --version 11.2.0.07112021
- name: Configure with ${{ matrix.cxx }}
shell: bash
run: |
CC=${{ matrix.cc }} CXX=${{ matrix.cxx }} cmake -DUSE_INJA=${{ matrix.inja }} -G 'MinGW Makefiles' .
- name: Build
shell: bash
run: |
make
- name: Setup
shell: bash
run: |
mkdir -p ./tests/bin/log
mkdir -p ./bin/log
ls . ./tests/
- name: Run tests
shell: bash
run: |
./tests/Core-Tests.exe
ubuntu-build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-20.04, ubuntu-22.04]
cxx: [clang++, g++]
inja: [ON, OFF]
include:
- cxx: clang++
cc: clang
- cxx: g++
cc: gcc
name: Ubuntu / ${{ matrix.os }} / ${{ matrix.cxx }} / Inja ${{ matrix.inja }}
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Compilers setup
run: |
sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y llvm g++-11 gcc-11
- name: Configure with ${{ matrix.cxx }}
shell: bash
run: |
CC=${{ matrix.cc }} CXX=${{ matrix.cxx }} cmake -DUSE_INJA=${{ matrix.inja }} -G 'Unix Makefiles' .
- name: Build
shell: bash
run: |
make
- name: Run tests
shell: bash
run: |
mkdir -p ./tests/bin/log ./bin/log
./tests/Core-Tests
./tests/Core-Tests | sed -E "s/`printf "\033"`\[([0-9]+)(;1)?m//g" | cat > ./bin/log/performance.txt