-
Notifications
You must be signed in to change notification settings - Fork 6
36 lines (28 loc) · 1.33 KB
/
Copy pathci.yml
File metadata and controls
36 lines (28 loc) · 1.33 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
name: CI
on:
push:
branches: [main, testing]
pull_request:
branches: [main]
jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
- uses: actions/setup-dotnet@67a3573c9a986a3f9c594539f4ab511d57bb3ce9 # v4.3.1
with:
dotnet-version: '8.0.x'
- name: Restore NuGet packages
run: dotnet restore 1.6/Source/KeyzAllowUtilities/KeyzAllowUtilities.csproj
- name: Build (net48 with Krafs stubs)
run: dotnet build 1.6/Source/KeyzAllowUtilities/KeyzAllowUtilities.csproj -c Release --no-restore -p:TargetFramework=net48
# Unlike KeyzAllowUtilities.PUAH, this project's Multiplayer API reference falls back to
# a vendored DLL (1.6/Source/lib/0MultiplayerAPI.dll) when SteamWorkshopDir isn't set, so
# it builds in CI without the workshop mod present.
- name: Restore NuGet packages (Multiplayer compat)
run: dotnet restore 1.6/Source/KeyzAllowUtilities.Multiplayer/KeyzAllowUtilities.Multiplayer.csproj
- name: Build Multiplayer compat (net48 with Krafs stubs)
run: dotnet build 1.6/Source/KeyzAllowUtilities.Multiplayer/KeyzAllowUtilities.Multiplayer.csproj -c Release --no-restore -p:TargetFramework=net48