Skip to content

Commit

Permalink
WIP: adding github actions files
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyOThan committed Apr 1, 2024
1 parent 611b9b7 commit 8d6a671
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: build
on:
push:
branches: [ main ]
pull_request:
workflow_dispatch:

jobs:
validate-cfg-files:
uses: KSP-RO/BuildTools/.github/workflows/validate-cfg-files.yml@master

build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Download required assemblies
run: echo "TODO"

- name: Install Dependencies
run: echo "TODO"

- name: Update Version
run: echo "TODO"
# TODO: fetch tag, datetime, etc

- name: Build Mod Solution
run: msbuild /p:Configuration=Release /p:ReferencePath="${KSP_DIR}" ${GITHUB_WORKSPACE}/FreeIva.sln

- name: Assemble Release
run: echo "TODO"
# TODO: copy license/readme/changelog etc? copy to temp location?

- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
# TODO: add version to filename?
name: FreeIva
path: ${GITHUB_WORKSPACE}/GameData
12 changes: 12 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Test

on:
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- name: test
run: echo "test"

0 comments on commit 8d6a671

Please sign in to comment.