-
Notifications
You must be signed in to change notification settings - Fork 0
128 lines (124 loc) · 4.83 KB
/
main.yml
File metadata and controls
128 lines (124 loc) · 4.83 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
124
125
126
127
128
name: Full Build
on: [push]
# Reduced compile matrix to single os and do multiple compiles in a single run to reduce minute usage
jobs:
Linux:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.MSF_REPO_ACCESS }}
submodules: recursive
- name: setup
run: |
chmod +x *.sh
sudo update-alternatives --remove-all clang
sudo update-alternatives --install /usr/bin/clang++ clang++ /usr/bin/clang++-12 1000
sudo update-alternatives --install /usr/bin/clang clang /usr/bin/clang-12 1000
- name: generate projects
run: ./generate_projects.sh
- name: compile and test debug linux clang
run: ./build_and_run_tests.sh debug linux clang
- name: compile and test release linux clang
run: ./build_and_run_tests.sh release linux clang
- name: compile and test debug linux gcc
run: ./build_and_run_tests.sh debug linux gcc
- name: compile and test release linux gcc
run: ./build_and_run_tests.sh release linux gcc
- name: compile and test debug_validation linux clang
run: ./build_and_run_tests.sh debug_validation linux clang
- name: compile and test release_validation linux clang
run: ./build_and_run_tests.sh release_validation linux clang
# todo: gcc-11 isn't available on runners yet, and I don't want to add installer for it
# - name: compile and test debug_validation linux gcc
# run: ./build_and_run_tests.sh debug_validation linux gcc
# - name: compile and test release_validation linux gcc
# run: ./build_and_run_tests.sh release_validation linux gcc
Mac_OSX:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
matrix:
os: [macOS-latest]
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.MSF_REPO_ACCESS }}
submodules: recursive
- name: setup
run: |
chmod +x *.sh
alias gcc=gcc-11
alias g++=g++-11
- name: generate projects
run: ./generate_projects_osx.sh
- name: compile and test debug mac clang
run: ./build_and_run_tests.sh debug mac clang
- name: compile and test release mac clang
run: ./build_and_run_tests.sh release mac clang
# todo: Crashing, even on clang 13?
# - name: compile and test debug_validation mac clang
# run: ./build_and_run_tests.sh debug_validation mac clang
# - name: compile and test release_validation mac clang
# run: ./build_and_run_tests.sh release_validation mac clang
Windows:
runs-on: ${{ matrix.os }}
timeout-minutes: 30
env:
SLN_PATH: projects\modernstringformatsolution_vs2022.sln
strategy:
matrix:
os: [windows-latest]
steps:
- uses: actions/checkout@v2
with:
token: ${{ secrets.MSF_REPO_ACCESS }}
submodules: recursive
- name: generate projects
run: .\generate_projects.bat
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: compile and test debug 64
shell: cmd
run: |
msbuild.exe "%SLN_PATH%" /p:Configuration=Debug /p:Platform=x64
.\.temp\bin\modernstringformatproject_vs2022_win64_debug.exe
- name: compile and test release 64
shell: cmd
run: |
msbuild.exe "%SLN_PATH%" /p:Configuration=Release /p:Platform=x64
.\.temp\bin\modernstringformatproject_vs2022_win64_release.exe
- name: compile and test debug 32
shell: cmd
run: |
msbuild.exe "%SLN_PATH%" /p:Configuration=Debug /p:Platform=win32
.\.temp\bin\modernstringformatproject_vs2022_win32_debug.exe
- name: compile and test release 32
shell: cmd
run: |
msbuild.exe "%SLN_PATH%" /p:Configuration=Release /p:Platform=win32
.\.temp\bin\modernstringformatproject_vs2022_win32_release.exe
- name: compile and test debug validation 64
shell: cmd
run: |
msbuild.exe "%SLN_PATH%" /p:Configuration=Debug_Validation /p:Platform=x64
.\.temp\bin\modernstringformatproject_vs2022_win64_debug_validation.exe
- name: compile and test release validation 64
shell: cmd
run: |
msbuild.exe "%SLN_PATH%" /p:Configuration=Release_Validation /p:Platform=x64
.\.temp\bin\modernstringformatproject_vs2022_win64_release_validation.exe
- name: compile and test debug validation 32
shell: cmd
run: |
msbuild.exe "%SLN_PATH%" /p:Configuration=Debug_Validation /p:Platform=win32
.\.temp\bin\modernstringformatproject_vs2022_win32_debug_validation.exe
- name: compile and test release validation 32
shell: cmd
run: |
msbuild.exe "%SLN_PATH%" /p:Configuration=Release_Validation /p:Platform=win32
.\.temp\bin\modernstringformatproject_vs2022_win32_release_validation.exe