-
Notifications
You must be signed in to change notification settings - Fork 11
93 lines (77 loc) · 2.14 KB
/
Copy pathbuild.yml
File metadata and controls
93 lines (77 loc) · 2.14 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
name: Build
on:
push:
branches:
- "master"
pull_request:
workflow_dispatch:
release:
types: [published]
jobs:
build-windows:
runs-on: windows-latest
env:
NUGET_PACKAGES: D:\nuget\packages
steps:
- name: Checkout
uses: actions/checkout@v6
with:
submodules: "recursive"
- name: Test
run: dotnet test
- name: Build
run: dotnet publish RLBotCS -r win-x64
- name: Upload build artifact
uses: actions/upload-artifact@v7
with:
name: RLBotServer-windows
path: ./**/publish/RLBotServer.exe
build-linux:
runs-on: ubuntu-latest
container:
image: debian:bookworm-slim
steps:
- name: Install prerequisites
run: |
apt-get update
apt-get install -y --no-install-recommends ca-certificates clang lld git curl
- name: Checkout
uses: actions/checkout@v6
with:
submodules: "recursive"
- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: "10.0.x"
- name: Test
run: dotnet test
- name: Formatting
run: |
dotnet tool restore
dotnet csharpier check .
- name: Build
run: dotnet publish RLBotCS -r linux-x64
- name: Upload build artifact
uses: actions/upload-artifact@v7
with:
name: RLBotServer-ubuntu
path: ./**/publish/RLBotServer
release:
name: Release
runs-on: ubuntu-latest
if: github.event_name == 'release' && github.event.action == 'published'
needs: [build-linux, build-windows]
permissions:
contents: write
steps:
- uses: actions/download-artifact@v8
with:
merge-multiple: "true"
- name: Publish to GitHub Releases
uses: softprops/action-gh-release@v3
with:
tag_name: ${{ github.event.release.tag_name }}
files: ./RLBotCS/**/publish/RLBotServer*
generate_release_notes: true
body: |
Pre-built binaries that allows bots to interface with Rocket League via the RLBot v5 spec