-
Notifications
You must be signed in to change notification settings - Fork 70
146 lines (124 loc) · 4.26 KB
/
build.yaml
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
144
145
name: Build
on:
push:
branches: [ 'master' ]
tags: [ '*' ]
pull_request_target:
branches: [ '*' ]
env:
PRINCIPIA_MSVC: .
PRINCIPIA_KSP_ASSEMBLIES_VERSION: 1.12.5
permissions:
id-token: write
contents: read
jobs:
start:
if: github.repository == 'mockingbirdnest/Principia'
runs-on: windows-latest
steps:
- name: Start runners
uses: mockingbirdnest/actions/windows/start_runners@main
with:
client_id: ${{ secrets.PRINCIPIA_BUILD_CLIENT_ID }}
tenant_id: ${{ secrets.PRINCIPIA_BUILD_TENANT_ID }}
subscription_id: ${{ secrets.PRINCIPIA_BUILD_SUBSCRIPTION_ID }}
build:
if: github.repository == 'mockingbirdnest/Principia'
runs-on: ${{ matrix.configuration }}
strategy:
matrix:
configuration: [Debug, Release]
steps:
- name: Checkout source files
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: |
${{ github.event_name == 'pull_request_target'
&& format('refs/pull/{0}/merge', github.event.number)
|| '' }}
- name: Download KSP assemblies
uses: mockingbirdnest/actions/windows/download_ksp_assemblies@main
with:
secret_directory: ${{ secrets.PRINCIPIA_KSP_ASSEMBLIES_DIRECTORY }}
ksp_version: ${{ env.PRINCIPIA_KSP_ASSEMBLIES_VERSION }}
- name: Initialize build environment
uses: mockingbirdnest/actions/windows/initialize_build@main
with:
configuration: ${{ matrix.configuration }}
- name: Download abseil artifact
uses: mockingbirdnest/actions/windows/download_artifact@main
with:
name: abseil-cpp
configuration: ${{ matrix.configuration }}
directory: Google
- name: Download benchmark artifact
uses: mockingbirdnest/actions/windows/download_artifact@main
with:
name: benchmark
configuration: ${{ matrix.configuration }}
directory: Google
- name: Download config artifact
uses: mockingbirdnest/actions/windows/download_artifact@main
with:
name: config
configuration: ${{ matrix.configuration }}
directory: Boost
- name: Download gipfeli artifact
uses: mockingbirdnest/actions/windows/download_artifact@main
with:
name: gipfeli
configuration: ${{ matrix.configuration }}
directory: Google
- name: Download glog artifact
uses: mockingbirdnest/actions/windows/download_artifact@main
with:
name: glog
configuration: ${{ matrix.configuration }}
directory: Google
- name: Download googletest artifact
uses: mockingbirdnest/actions/windows/download_artifact@main
with:
name: googletest
configuration: ${{ matrix.configuration }}
directory: Google
- name: Download multiprecision artifact
uses: mockingbirdnest/actions/windows/download_artifact@main
with:
name: multiprecision
configuration: ${{ matrix.configuration }}
directory: Boost
- name: Download protobuf artifact
uses: mockingbirdnest/actions/windows/download_artifact@main
with:
name: protobuf
configuration: ${{ matrix.configuration }}
directory: Google
- name: Download zfp artifact
uses: mockingbirdnest/actions/windows/download_artifact@main
with:
name: zfp
configuration: ${{ matrix.configuration }}
directory: 'LLNL'
- name: Restore ${{ matrix.configuration }}
uses: mockingbirdnest/actions/windows/restore@main
with:
configuration: ${{ matrix.configuration }}
solution_directory: ${{ env.PRINCIPIA_MSVC }}
- name: Rebuild ${{ matrix.configuration }}
uses: mockingbirdnest/actions/windows/rebuild@main
with:
configuration: ${{ matrix.configuration }}
solution_directory: ${{ env.PRINCIPIA_MSVC }}
- name: Test ${{ matrix.configuration }}
uses: mockingbirdnest/actions/windows/test@main
with:
configuration: ${{ matrix.configuration }}
- name: Clean stub binaries
run: |
git reset --hard
shell: pwsh
- name: Upload principia artifact
uses: mockingbirdnest/actions/windows/upload_principia_artifact@main
with:
configuration: ${{ matrix.configuration }}