-
Notifications
You must be signed in to change notification settings - Fork 11
61 lines (50 loc) · 1.77 KB
/
Copy pathinternal-test-plugin-nuget.yml
File metadata and controls
61 lines (50 loc) · 1.77 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
# This is an internal test for KSPBuildTools and not intended to be used by other projects
name: Test Plugin Mod (NuGet)
on:
workflow_call:
inputs:
package-version:
type: string
required: true
env:
TESTDIR: tests/plugin-mod-nuget
NuGetDirectory: ${{ github.workspace}}/nuget
jobs:
build:
strategy:
matrix:
dotnet-version: [ 7.x, 8.x, 9.x ]
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- name: Setup .NET
uses: actions/setup-dotnet@v4
with:
dotnet-version: ${{ matrix.dotnet-version }}
- name: Setup Nuget Package Sources
run: |
mkdir -p ${{ env.NuGetDirectory }}/local
dotnet nuget add source ${{ env.NuGetDirectory }}/local -n local
- uses: actions/download-artifact@v4
with:
name: nuget-package
path: ${{ env.NuGetDirectory }}/local
- uses: ./.github/actions/setup-ckan
- uses: ./.github/actions/compile
with:
ksp-zip-url: https://github.com/KSPModdingLibs/KSPLibs/raw/main/KSP-1.12.5.zip
working-directory: ${{ env.TESTDIR }}
solution-file-path: plugin-mod-nuget.csproj
env:
KSPBuildToolsVersion: ${{ inputs.package-version }}
- uses: ./.github/actions/assemble-release
id: assemble-release
with:
artifacts: ${{ env.TESTDIR }}/GameData
output-file-name: plugin-mod-nuget
- uses: actions/upload-artifact@v4
with:
path: ${{ steps.assemble-release.outputs.artifact-dir-path }}
name: plugin-mod-nuget-${{ matrix.dotnet-version }}
if-no-files-found: error
include-hidden-files: 'true' # behavior changed in 4.4.0. Include hidden for matching the behavior of `zip`