From 85eeec32e363e04cc8cf58a4b07d2dadd584070f Mon Sep 17 00:00:00 2001 From: Xevion Date: Tue, 7 May 2024 01:41:46 -0500 Subject: [PATCH 1/4] Add 'build' folder to .gitignore --- .gitignore | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index e6f6d1e..99cfade 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .idea -/Assemblies/*.dll -/Assemblies/*.pdb \ No newline at end of file +Assemblies/*.dll +Assemblies/*.pdb +build/ \ No newline at end of file From d53a7f2763878a3b5d89a2638c097c0a55f8f3b4 Mon Sep 17 00:00:00 2001 From: Xevion Date: Tue, 7 May 2024 01:42:01 -0500 Subject: [PATCH 2/4] Update supported version, modVersion --- About/About.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/About/About.xml b/About/About.xml index cb187ed..645cdbe 100644 --- a/About/About.xml +++ b/About/About.xml @@ -5,8 +5,8 @@ Xevion Provides simple but powerful hydroponics that store plants underground at the cost of expensive components, lots of power, and research. -
  • 1.4
  • +
  • 1.5
  • - 0.1 + 0.1.1 https://github.com/Xevion/RimWorld-Hydroponics-Expanded \ No newline at end of file From bc7308749bae5ac0c03ee0071b3d665a9ce02f71 Mon Sep 17 00:00:00 2001 From: Xevion Date: Tue, 7 May 2024 04:13:30 -0500 Subject: [PATCH 3/4] Add build script --- .github/workflows/build.yml | 41 +++++++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/build.yml diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..9be73ec --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,41 @@ +name: Build + +env: + SLN_PATH: Source/HydroponicsExpanded/ + +on: + workflow_dispatch: + push: + paths-ignore: + - 'README.md' + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout Repository + uses: actions/checkout@v3 + + - name: Setup Dotnet + uses: actions/setup-dotnet@v2 + with: + dotnet-version: 8.0.x + + - name: Install Mod Dependencies + run: dotnet restore ${{ env.SLN_PATH }} + + - name: Build Mod + run: dotnet build ${{ env.SLN_PATH }} --configuration Release --no-restore + + - name: Move files + run: | + mkdir -p output/HydroponicsExpanded + mv About/ Assemblies/ Defs/ Languages/ Textures/ output/HydroponicsExpanded + + - name: Upload Mod Artifacts + uses: actions/upload-artifact@v2 + with: + name: + path: | + output/ \ No newline at end of file From 275c524a30f08c4d52c7c8b148006670dba4bc67 Mon Sep 17 00:00:00 2001 From: Xevion Date: Tue, 7 May 2024 04:33:13 -0500 Subject: [PATCH 4/4] Working dotnet CLI build, add Krafs RimWorld ref pkg --- .github/workflows/build.yml | 5 ++--- .../HydroponicsExpanded.csproj | 20 +++++++++++-------- 2 files changed, 14 insertions(+), 11 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9be73ec..57ef037 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,6 +36,5 @@ jobs: - name: Upload Mod Artifacts uses: actions/upload-artifact@v2 with: - name: - path: | - output/ \ No newline at end of file + name: HydroponicsExpanded + path: output/ \ No newline at end of file diff --git a/Source/HydroponicsExpanded/HydroponicsExpanded.csproj b/Source/HydroponicsExpanded/HydroponicsExpanded.csproj index 8acc2fd..f53b964 100644 --- a/Source/HydroponicsExpanded/HydroponicsExpanded.csproj +++ b/Source/HydroponicsExpanded/HydroponicsExpanded.csproj @@ -1,6 +1,6 @@  - - + + Debug AnyCPU @@ -9,8 +9,9 @@ Properties HydroponicsExpanded HydroponicsExpanded - v4.0 + net472 512 + false AnyCPU @@ -31,7 +32,7 @@ prompt 4 - + - + - + + + +