Skip to content

Commit

Permalink
First pass at build action
Browse files Browse the repository at this point in the history
  • Loading branch information
JonnyOThan authored Apr 1, 2024
1 parent 611b9b7 commit 4eacf8f
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
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

- name: Install Dependencies

- name: Update Version
# 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
# 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

0 comments on commit 4eacf8f

Please sign in to comment.