Skip to content

Commit dbb7299

Browse files
authored
Convert the build system to KSPBuildTools (#861)
1 parent fe3655d commit dbb7299

32 files changed

Lines changed: 124 additions & 989 deletions

.github/workflows/build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: build
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_call:
7+
8+
jobs:
9+
build:
10+
runs-on: ubuntu-22.04
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: KSPModdingLibs/KSPBuildTools/.github/actions/setup-ckan@1.1.1
14+
15+
- uses: KSPModdingLibs/KSPBuildTools/.github/actions/compile@1.1.1
16+
- uses: KSPModdingLibs/KSPBuildTools/.github/actions/assemble-release@1.1.1
17+
with:
18+
output-file-name: RemoteTech
19+
# The build step already copies the relevant files into GameData so we
20+
# don't need to include the defaults here
21+
artifacts: GameData
22+
artifacts-exclude: dont-exclude-anything
23+
24+
- run: tree
25+
- uses: actions/upload-artifact@v4
26+
with:
27+
path: /tmp/release/RemoteTech
28+
name: RemoteTech
29+
- uses: actions/upload-artifact@v4
30+
with:
31+
path: GameData/RemoteTech/Versioning/RemoteTech.version
32+
name: RemoteTech.version

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: release
2+
3+
on:
4+
release:
5+
types:
6+
- published
7+
8+
env:
9+
GITHUB_TOKEN: ${{ github.token }}
10+
11+
jobs:
12+
build:
13+
uses: ./.github/workflows/build.yml
14+
15+
upload-release-assets:
16+
runs-on: ubuntu-latest
17+
needs: [build]
18+
permissions:
19+
contents: write
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- uses: actions/download-artifact@v4
24+
with:
25+
name: RemoteTech
26+
path: RemoteTech
27+
- uses: actions/download-artifact@v4
28+
with:
29+
name: RemoteTech.version
30+
- run: tree
31+
32+
- name: Create Zip
33+
run: |
34+
cd RemoteTech
35+
zip -r9 ../RemoteTech.zip *
36+
37+
- name: Upload Release Assets
38+
run: |
39+
gh release upload --clobber ${{ github.ref_name }} \
40+
RemoteTech.zip \
41+
RemoteTech.version

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,8 @@ $RECYCLE.BIN/
162162
src/RemoteTech/*.dll
163163
*.zip
164164
GameData/RemoteTech/Plugins/RemoteTech.dll
165+
GameData/RemoteTech/Plugins/RemoteTech.pdb
166+
GameData/RemoteTech/Plugins/RemoteTech.xml
167+
GameData/RemoteTech/Versioning/RemoteTech.version
165168
GameData/build.txt
166169
src/RemoteTech/RemoteTech.sln.ide/

CI/.travis.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

CI/build.remotetech.sh

Lines changed: 0 additions & 37 deletions
This file was deleted.

CI/github.build.deploy.sh

Lines changed: 0 additions & 83 deletions
This file was deleted.

CI/travis.osx.install.deps.sh

Lines changed: 0 additions & 8 deletions
This file was deleted.

GameData/RemoteTech/RemoteTech.version

Lines changed: 0 additions & 33 deletions
This file was deleted.

RemoteTech.slnx

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Solution>
2+
<Configurations>
3+
<BuildType Name="Debug" />
4+
<BuildType Name="Release" />
5+
</Configurations>
6+
<Folder Name="/Solution Items/">
7+
<File Path="CHANGES.md" />
8+
<File Path="CONTRIBUTING.md" />
9+
<File Path="README.md" />
10+
</Folder>
11+
<Project Path="src/RemoteTech/RemoteTech.csproj" />
12+
</Solution>

0 commit comments

Comments
 (0)