-
Notifications
You must be signed in to change notification settings - Fork 77
144 lines (139 loc) · 4.89 KB
/
main.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
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
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
name: CI
on: [push]
jobs:
Ubuntu_cmake:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install required packages
run: |
sudo apt-get update
sudo apt-get -y install git gcc g++ make lcov wget libpthread-stubs0-dev
- name: Configure CMake
run: |
mkdir cmake
cd cmake
wget https://github.com/Kitware/CMake/releases/download/v3.16.5/cmake-3.16.5-Linux-x86_64.sh
chmod +x cmake-3.16.5-Linux-x86_64.sh
./cmake-3.16.5-Linux-x86_64.sh --skip-license
cd ../
mkdir cmake-cache
cd cmake-cache
../cmake/bin/cmake -DGCOV=ON ..
- name: Build mesh
run: |
cd cmake-cache
make all
- name: Run tests
run: |
cd cmake-cache
make coverage_gcc
Ubuntu_bazel:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: build in debug mode
run: |
./bazel test -c dbg //src:unit-tests
- name: build tests and binary
run: |
make -j1
macOS_bazel:
runs-on: macos-latest
steps:
- uses: actions/checkout@v1
- name: build in debug mode
run: |
./bazel test -c dbg //src:unit-tests --test_output=all --cache_test_results=no --runs_per_test=5
- name: build tests and binary
run: |
make -j1
#Windows_MinGW:
#
# runs-on: windows-latest
#
# steps:
# - uses: actions/checkout@v1
# - name: Install msys2/mingw64
# #steps from https://github.com/msys2/MINGW-packages/blob/master/azure-pipelines.yml
# run: |
# git clone https://github.com/msys2/msys2-ci-base.git %CD:~0,2%\msys64
# %CD:~0,2%\msys64\usr\bin\rm -rf %CD:~0,2%\msys64\.git
# set PATH=%CD:~0,2%\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
# %CD:~0,2%\msys64\usr\bin\pacman --noconfirm -Syyuu
# set PATH=%CD:~0,2%\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
# %CD:~0,2%\msys64\usr\bin\pacman --noconfirm --needed -S git base-devel
# %CD:~0,2%\msys64\usr\bin\pacman --noconfirm -Scc
# - name: Install required packages
# run: |
# set PATH=%CD:~0,2%\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
# pacman -S --noconfirm mingw-w64-x86_64-binutils
# pacman -S --noconfirm mingw-w64-x86_64-cmake
# pacman -S --noconfirm mingw-w64-x86_64-gcc
# pacman -S --noconfirm mingw-w64-x86_64-gcc-libs
# pacman -S --noconfirm mingw-w64-x86_64-gcc-objc
# pacman -S --noconfirm mingw-w64-x86_64-gdb
# pacman -S --noconfirm mingw-w64-x86_64-ninja
# pacman -S --noconfirm mingw-w64-x86_64-lcov
# pacman -S --noconfirm mingw-w64-x86_64-winpthreads-git
# pacman --noconfirm -Scc
# - name: Configure CMake
# run: |
# set PATH=%CD:~0,2%\msys64\mingw64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
# mkdir cmake-cache
# cd cmake-cache
# cmake -DGCOV=ON -G"Ninja" ..
# - name: Build
# run: |
# set PATH=%CD:~0,2%\msys64\mingw64\bin;%CD:~0,2%\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
# cd cmake-cache
# ninja
# - name: Run tests
# run: |
# set PATH=%CD:~0,2%\msys64\mingw64\bin;%CD:~0,2%\msys64\usr\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem
# cd cmake-cache
# ninja coverage
# - name: Run big alloc
# run: cd cmake-cache && ninja run_big-alloc
# - name: Run fork example
# run: cd cmake-cache && ninja run_fork-example
# - name: Run global-large-stress
# run: cd cmake-cache && ninja run_global-large-stress
# - name: Run local alloc
# run: cd cmake-cache && ninja run_local-alloc
# - name: Run thread
# run: cd cmake-cache && ninja run_thread
#Windows_Visual_Studio: #not working
#
# runs-on: windows-latest
#
# steps:
# - uses: actions/checkout@v1
# - name: Install required packages
# run: |
# ????
# - name: Configure CMake
# run: |
# %comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat"
# mkdir cmake-cache
# cd cmake-cache
# cmake -DGCOV=ON -G"Ninja" ..
# - name: Build
# run: |
# %comspec% /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\Common7\Tools\VsDevCmd.bat"
# cd cmake-cache
# ninja
# - name: Run tests
# run: |
# cd cmake-cache
# ninja coverage
# - name: Run big alloc
# run: cd cmake-cache && ninja run_big-alloc
# - name: Run fork example
# run: cd cmake-cache && ninja run_fork-example
# - name: Run global-large-stress
# run: cd cmake-cache && ninja run_global-large-stress
# - name: Run local alloc
# run: cd cmake-cache && ninja run_local-alloc
# - name: Run thread
# run: cd cmake-cache && ninja run_thread