From 8d6a671ecf2775eadd1a827a8b0f12f6922077b9 Mon Sep 17 00:00:00 2001 From: JonnyOThan Date: Mon, 1 Apr 2024 11:56:16 -0400 Subject: [PATCH] WIP: adding github actions files --- .github/workflows/build.yml | 40 +++++++++++++++++++++++++++++++++++++ .github/workflows/test.yml | 12 +++++++++++ 2 files changed, 52 insertions(+) create mode 100644 .github/workflows/build.yml create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 00000000..44bbc6b1 --- /dev/null +++ b/.github/workflows/build.yml @@ -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 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 00000000..9ee10d47 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,12 @@ +name: Test + +on: + workflow_dispatch: + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: test + run: echo "test" +