-
Notifications
You must be signed in to change notification settings - Fork 1
112 lines (85 loc) · 2.85 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
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
name: build
on:
workflow_call: # workflow is reusable
workflow_dispatch: # workflow can be run manually from the actions tab
env:
CONAN_SYSREQUIRES_MODE: enabled
CONAN_USER_HOME: "${{ github.workspace }}/conan-cache"
CONAN_USER_HOME_SHORT: "${{ github.workspace }}/conan-cache/short"
CLANG_TIDY_VERSION: "15.0.6"
jobs:
ci:
runs-on: ${{ matrix.os }}
env:
PROJECT_BUILD_HOME: "${{ github.workspace }}/cmake_out"
PROJECT_DEPLOY_HOME: "${{ github.workspace }}/.github/pages/${{ matrix.build_type }}/${{ matrix.os }}/${{ matrix.arch }}/${{ matrix.compiler }}"
defaults:
run:
shell: bash
# working-directory: scripts
steps:
#- run: echo PROJECT_BUILD_HOME $PROJECT_BUILD_HOME
#- run: echo PROJECT_DEPLOY_HOME $PROJECT_DEPLOY_HOME
- uses: actions/checkout@v3
with:
submodules: 'recursive'
- name: Setup Cpp
uses: aminya/setup-cpp@v1
with:
compiler: ${{ matrix.compiler }}
vcvarsall: ${{ contains(matrix.os, 'windows') }}
cmake: true
ninja: false # true
vcpkg: false # true
cppcheck: false # true
clangtidy: false # true
clangformat: false # true
doxygen: false # true
graphviz: false # true
# - run: .github/scripts/install-all.sh
- run: .github/scripts/build-all.sh
strategy:
fail-fast: false
matrix:
os:
# - ubuntu-22.04
- windows-2022
# - macos-12
arch:
- X64
# - ARM64
compiler:
- llvm
- gcc
generator:
- "Ninja Multi-Config"
build_type:
- Debug
# - Release
developer_mode:
- ON
# - OFF
include:
- os: windows-2022
arch: X64
compiler: msvc
generator: "Visual Studio 17 2022"
build_type: Debug
developer_mode: ON
# - os: windows-2022
# arch: ARM64
# compiler: msvc
# generator: "Visual Studio 17 2022"
# build_type: Debug
# developer_mode: ON
#- run: mkdir -p .github/pages/${{ matrix.build_type }}/${{ matrix.os }}/${{ matrix.arch }}/${{ matrix.compiler }}/cocor.exe
#- run: cp ~/cmake_out/cocor/cocor .github/pages/${{ matrix.build_type }}/${{ matrix.os }}/${{ matrix.arch }}/${{ matrix.compiler }}/cocor.exe
#- name: Setup Pages
# uses: actions/configure-pages@v2
#- name: Build with Jekyll
# uses: actions/jekyll-build-pages@v1
# with:
# source: .github/pages/
# destination: ./_site
#- name: Upload artifact
# uses: actions/upload-pages-artifact@v1