-
Notifications
You must be signed in to change notification settings - Fork 127
400 lines (387 loc) · 12.1 KB
/
ci.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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
#
# ci.yml
# RVO2 Library C#
#
# SPDX-FileCopyrightText: 2008 University of North Carolina at Chapel Hill
# SPDX-License-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# Please send all bug reports to <[email protected]>.
#
# The authors may be contacted via:
#
# Jur van den Berg, Stephen J. Guy, Jamie Snape, Ming C. Lin, Dinesh Manocha
# Dept. of Computer Science
# 201 S. Columbia St.
# Frederick P. Brooks, Jr. Computer Science Bldg.
# Chapel Hill, N.C. 27599-3175
# United States of America
#
# <https://gamma.cs.unc.edu/RVO2/>
#
---
name: ci
on: # yamllint disable-line rule:truthy
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- published
schedule:
- cron: '0 5 * * *'
env:
DOTNET_CLI_TELEMETRY_OPTOUT: 1
jobs:
bazel_arch:
name: bazel arch latest
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- name: pre-checkout setup
run: |
pacman --needed --noconfirm --noprogressbar -S -u -y \
bazel \
ca-certificates \
curl \
gcc \
git \
icu \
lttng-ust \
python \
which \
zlib
rm -rf \
/var/cache/pacman/pkg/* \
/var/lib/pacman/sync/*
shell: bash
- name: checkout
uses: actions/checkout@v4
- name: post-checkout setup
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package
run: bazel build ...
shell: bash
bazel_macos:
name: bazel macos 14
runs-on: macos-14
steps:
- name: pre-checkout setup
run: |
brew update -q
brew upgrade -f -q
brew unlink -q bazelisk
brew install -q \
bazel \
buildifier \
git \
python \
jsonlint \
markdownlint-cli \
yamllint
brew cleanup -q -s
rm -rf $(brew --cache)
env:
HOMEBREW_NO_ANALYTICS: 1
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
shell: zsh -efuo pipefail {0}
- name: checkout
uses: actions/checkout@v4
- name: post-checkout setup
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package
run: bazel build ...
shell: zsh -efuo pipefail {0}
bazel_ubuntu:
name: bazel ubuntu latest
runs-on: ubuntu-latest
container: ubuntu:latest
steps:
- name: pre-checkout setup
run: |
apt-get -qq -o APT::Acquire::Retries=4 update \
|| (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update)
apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \
upgrade
apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \
--no-install-recommends install \
ca-certificates \
curl \
g++ \
git \
gnupg \
libicu74 \
liblttng-ust1t64 \
python-is-python3 \
zlib1g
curl -sS https://bazel.build/bazel-release.pub.gpg | gpg --dearmor - \
> /usr/share/keyrings/bazel-archive-keyring.gpg
echo 'deb [signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8' \
> /etc/apt/sources.list.d/bazel.list
apt-get -qq -o APT::Acquire::Retries=4 update \
|| (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update)
apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \
--no-install-recommends install \
bazel
apt-get -qq -o Dpkg::Use-Pty=0 autoremove
rm -rf /var/lib/apt/lists/*
env:
DEBIAN_FRONTEND: noninteractive
shell: bash
- name: checkout
uses: actions/checkout@v4
- name: post-checkout setup
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package
run: bazel build ...
shell: bash
dotnet_alpine:
name: dotnet alpine latest
runs-on: ubuntu-latest
container: alpine:latest
steps:
- name: pre-checkout setup
run: |
apk upgrade -q --no-cache
apk add -q --no-cache \
bash \
ca-certificates \
curl \
git \
icu \
lttng-ust \
zlib
shell: sh
- name: checkout
uses: actions/checkout@v4
- name: post-checkout setup
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package debug
run: |
dotnet build --configuration Debug --nologo RVOCS.sln
dotnet pack --configuration Debug --no-build --nologo RVOCS/RVOCS.csproj
shell: sh
- name: build package release
run: |
dotnet build --configuration Release --nologo RVOCS.sln
dotnet pack --configuration Release --no-build --nologo RVOCS/RVOCS.csproj
shell: sh
dotnet_arch:
name: dotnet arch latest
runs-on: ubuntu-latest
container: archlinux:latest
steps:
- name: pre-checkout setup
run: |
pacman --needed --noconfirm --noprogressbar -S -u -y \
ca-certificates \
curl \
git \
icu \
lttng-ust \
zlib
rm -rf \
/var/cache/pacman/pkg/* \
/var/lib/pacman/sync/*
shell: bash
- name: checkout
uses: actions/checkout@v4
- name: post-checkout setup
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package debug
run: |
dotnet build --configuration Debug --nologo RVOCS.sln
dotnet pack --configuration Debug --no-build --nologo RVOCS/RVOCS.csproj
shell: bash
- name: build package release
run: |
dotnet build --configuration Release --nologo RVOCS.sln
dotnet pack --configuration Release --no-build --nologo RVOCS/RVOCS.csproj
shell: bash
dotnet_fedora:
name: dotnet fedora latest
runs-on: ubuntu-latest
container: fedora:latest
steps:
- name: pre-checkout setup
run: |
dnf makecache -q --refresh || (sleep 15; dnf makecache -q --refresh)
dnf upgrade -q -y
dnf install -q -y \
ca-certificates \
curl \
findutils \
git \
glibc-langpack-en \
libicu \
lttng-ust \
zlib
dnf clean all
rm -rf /var/cache/yum
shell: bash
- name: checkout
uses: actions/checkout@v4
- name: post-checkout setup
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package debug
run: |
dotnet build --configuration Debug --nologo RVOCS.sln
dotnet pack --configuration Debug --no-build --nologo RVOCS/RVOCS.csproj
shell: bash
- name: build package release
run: |
dotnet build --configuration Release --nologo RVOCS.sln
dotnet pack --configuration Release --no-build --nologo RVOCS/RVOCS.csproj
shell: bash
dotnet_macos:
name: dotnet macos 14
runs-on: macos-14
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package debug
run: |
dotnet build --configuration Debug --nologo RVOCS.sln
dotnet pack --configuration Debug --no-build --nologo RVOCS/RVOCS.csproj
shell: zsh -efuo pipefail {0}
- name: build and pack release
run: |
dotnet build --configuration Release --nologo RVOCS.sln
dotnet pack --configuration Release --no-build --nologo RVOCS/RVOCS.csproj
shell: zsh -efuo pipefail {0}
dotnet_rockylinux:
name: dotnet rockylinux 9
runs-on: ubuntu-latest
container: rockylinux:9
steps:
- name: pre-checkout setup
run: |
dnf makecache -q --refresh || (sleep 15; dnf makecache -q --refresh)
dnf upgrade -q -y
dnf install -q -y \
ca-certificates \
curl-minimal \
findutils \
git \
glibc-langpack-en \
libicu \
lttng-ust \
zlib
dnf clean all
rm -rf /var/cache/yum
shell: bash
- name: checkout
uses: actions/checkout@v4
- name: post-checkout setup
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package debug
run: |
dotnet build --configuration Debug --nologo RVOCS.sln
dotnet pack --configuration Debug --no-build --nologo RVOCS/RVOCS.csproj
shell: bash
- name: build package release
run: |
dotnet build --configuration Release --nologo RVOCS.sln
dotnet pack --configuration Release --no-build --nologo RVOCS/RVOCS.csproj
shell: bash
dotnet_ubuntu:
name: dotnet ubuntu latest
runs-on: ubuntu-latest
container: ubuntu:latest
steps:
- name: pre-checkout setup
run: |
apt-get -qq -o APT::Acquire::Retries=4 update \
|| (sleep 15; apt-get -qq -o APT::Acquire::Retries=4 update)
apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \
upgrade
apt-get -qq -o APT::Acquire::Retries=4 -o Dpkg::Use-Pty=0 \
--no-install-recommends install \
ca-certificates \
curl \
git \
libicu74 \
liblttng-ust1t64 \
zlib1g
apt-get -qq -o Dpkg::Use-Pty=0 autoremove
rm -rf /var/lib/apt/lists/*
env:
DEBIAN_FRONTEND: noninteractive
shell: bash
- name: checkout
uses: actions/checkout@v4
- name: post-checkout setup
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
source-url: https://nuget.pkg.github.com/snape/index.json
env:
NUGET_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: build package debug
run: |
dotnet build --configuration Debug --nologo RVOCS.sln
dotnet pack --configuration Debug --no-build --nologo RVOCS/RVOCS.csproj
shell: bash
- name: build package release
run: |
dotnet build --configuration Release --nologo RVOCS.sln
dotnet pack --configuration Release --no-build --nologo RVOCS/RVOCS.csproj
shell: bash
- name: push
run: |
dotnet nuget push --no-symbols true --skip-duplicate RVOCS/bin/Release/RVOCS.*.nupkg
shell: bash
if: ${{ github.event.release.published }}
dotnet_windows:
name: dotnet windows latest
runs-on: windows-latest
steps:
- name: checkout
uses: actions/checkout@v4
- name: setup
uses: actions/setup-dotnet@v4
with:
global-json-file: global.json
- name: build package debug
run: |
dotnet build --configuration Debug RVOCS.sln
dotnet pack --configuration Debug --no-build RVOCS\RVOCS.csproj
shell: pwsh
- name: build and pack release
run: |
dotnet build --configuration Release RVOCS.sln
dotnet pack --configuration Release --no-build RVOCS\RVOCS.csproj
shell: pwsh