Update build script

- DLL is now built every time release script is run, instead of pre-built versions being downloaded from 07th-mod server
This commit is contained in:
Daniel Wong
2023-03-08 19:38:14 +11:00
parent bdc0a66042
commit df616ddad5

View File

@@ -5,9 +5,39 @@ on:
- pull_request - pull_request
jobs: jobs:
dll_build:
name: Build DLL
runs-on: ubuntu-latest
steps:
- name: Checkout the repository
uses: actions/checkout@v3
with:
repository: 07th-mod/higurashi-assembly
ref: oni-mod
# Note: This uses the mono bundled with Ubuntu to build the project
- name: Compile project
run: msbuild /p:Configuration=Release
- name: Save Git Hash
run: >-
git show --pretty="format:Commit: %H %d%nDate: %cs%n%n%B" --no-patch > ./bin/Release/Assembly-CSharp.version.txt
- name: Upload DLL as Artifact
uses: actions/upload-artifact@v3
with:
name: higurashi-dll
path: |
./bin/Release/Assembly-CSharp.dll
./bin/Release/Assembly-CSharp.version.txt
if-no-files-found: error
windows_build: windows_build:
name: Windows Build name: Windows Build
needs: dll_build
runs-on: windows-latest runs-on: windows-latest
permissions:
contents: write
strategy: strategy:
matrix: matrix:
python-version: [3.8] python-version: [3.8]
@@ -15,9 +45,15 @@ jobs:
- name: Checkout the repository - name: Checkout the repository
uses: actions/checkout@v3 uses: actions/checkout@v3
# Download Windows artifacts
- name: Download DLL
uses: actions/download-artifact@v3
with:
name: higurashi-dll
# Setup python (Windows VM is Python 3.7 by default, we need at least Python 3.8) # Setup python (Windows VM is Python 3.7 by default, we need at least Python 3.8)
- name: Set up Python ${{ matrix.python-version }} - name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3 uses: actions/setup-python@v4
with: with:
python-version: ${{ matrix.python-version }} python-version: ${{ matrix.python-version }}
@@ -40,9 +76,19 @@ jobs:
draft: true draft: true
name: ${{ steps.run_release.outputs.release_name }} # This output is set in the 'deploy_higurashi.py' script above name: ${{ steps.run_release.outputs.release_name }} # This output is set in the 'deploy_higurashi.py' script above
body: | body: |
> [PUT INSTALL REQUIREMENTS HERE]. We recommend using [our installer](https://github.com/07th-mod/python-patcher/releases/latest). ## Install/Update Instructions
[PUT GENERAL DESCRIPTION HERE] We **HIGHLY** recommend using [our installer](https://github.com/07th-mod/python-patcher/releases/latest) to install the mod automatically, instead of the files on this page.
----
**DO NOT USE THE FILES BELOW UNLESS YOU REALLY WANT TO INSTALL MANUALLY, AND HAVE READ THE MANUAL INSTALL INSTRUCTIONS**
**THIS PAGE ONLY CONTAINS ONE PART OF THE PATCH. YOU NEED OTHER FILES FOR THE MOD TO WORK**
If you really want to install manually, follow the [manual install instructions](https://07th-mod.com/wiki/Higurashi/Manual-Installation/).
----
# Changelog # Changelog