diff --git a/.github/workflows/test-plugin.yml b/.github/workflows/test-plugin.yml index 04929ec..0809e31 100644 --- a/.github/workflows/test-plugin.yml +++ b/.github/workflows/test-plugin.yml @@ -3,9 +3,8 @@ name: test plugin mod build on: workflow_call: -defaults: - run: - working-directory: tests/plugin-mod +env: + TESTDIR: tests/plugin-mod jobs: build: @@ -13,4 +12,13 @@ jobs: steps: - uses: actions/checkout@v4 - - run: echo "Hello World" + - uses: ./.github/actions/setup-ckan + + - uses: ./.github/actions/compile + with: + solution-file-path: ${ env.TESTDIR }/mymod.csproj + ksp-zip-url: https://github.com/KSPModdingLibs/KSPLibs/raw/main/KSP-1.12.5.zip + + - uses: ./.github/actions/assemble-release + with: + artifacts: ${ env.TESTDIR }/GameData diff --git a/tests/plugin-mod/foo b/tests/plugin-mod/foo deleted file mode 100644 index e69de29..0000000 diff --git a/tests/plugin-mod/mymod.csproj b/tests/plugin-mod/mymod.csproj new file mode 100644 index 0000000..3d7de82 --- /dev/null +++ b/tests/plugin-mod/mymod.csproj @@ -0,0 +1,50 @@ + + + + + + all + runtime; build; native; contentfiles; analyzers + + + + + + net48 + 7.3 + false + x64 + 1701;1702;CS0649;CS1591; + 2024 KSPModdingLibs Contributors + MyMod + $(MSBuildThisFileDirectory) + + + + + + $(KSPRoot)/GameData/000_Harmony/0Harmony.dll + Harmony2 + 2.2.1.0 + False + + + + + + + $(RepoRootPath)GameData/MyMod/mymod.version + + + + + true + true + + + + + + + +