Skip to content

Commit 5e5bb28

Browse files
committed
Update build script
- DLL is now built every time release script is run, instead of pre-built versions being downloaded from 07th-mod server
1 parent bec5422 commit 5e5bb28

File tree

1 file changed

+49
-3
lines changed

1 file changed

+49
-3
lines changed

.github/workflows/pr_compile_scripts.yml

+49-3
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,55 @@ on:
55
- pull_request
66

77
jobs:
8+
dll_build:
9+
name: Build DLL
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Checkout the repository
13+
uses: actions/checkout@v3
14+
with:
15+
repository: 07th-mod/higurashi-assembly
16+
ref: wata-mod
17+
18+
# Note: This uses the mono bundled with Ubuntu to build the project
19+
- name: Compile project
20+
run: msbuild /p:Configuration=Release
21+
22+
- name: Save Git Hash
23+
run: >-
24+
git show --pretty="format:Commit: %H %d%nDate: %cs%n%n%B" --no-patch > ./bin/Release/Assembly-CSharp.version.txt
25+
26+
- name: Upload DLL as Artifact
27+
uses: actions/upload-artifact@v3
28+
with:
29+
name: higurashi-dll
30+
path: |
31+
./bin/Release/Assembly-CSharp.dll
32+
./bin/Release/Assembly-CSharp.version.txt
33+
if-no-files-found: error
34+
835
windows_build:
936
name: Windows Build
37+
needs: dll_build
1038
runs-on: windows-latest
39+
permissions:
40+
contents: write
1141
strategy:
1242
matrix:
1343
python-version: [3.8]
1444
steps:
1545
- name: Checkout the repository
1646
uses: actions/checkout@v3
1747

48+
# Download Windows artifacts
49+
- name: Download DLL
50+
uses: actions/download-artifact@v3
51+
with:
52+
name: higurashi-dll
53+
1854
# Setup python (Windows VM is Python 3.7 by default, we need at least Python 3.8)
1955
- name: Set up Python ${{ matrix.python-version }}
20-
uses: actions/setup-python@v3
56+
uses: actions/setup-python@v4
2157
with:
2258
python-version: ${{ matrix.python-version }}
2359

@@ -40,9 +76,19 @@ jobs:
4076
draft: true
4177
name: ${{ steps.run_release.outputs.release_name }} # This output is set in the 'deploy_higurashi.py' script above
4278
body: |
43-
> [PUT INSTALL REQUIREMENTS HERE]. We recommend using [our installer](https://github.com/07th-mod/python-patcher/releases/latest).
79+
## Install/Update Instructions
80+
81+
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.
82+
83+
----
84+
85+
**DO NOT USE THE FILES BELOW UNLESS YOU REALLY WANT TO INSTALL MANUALLY, AND HAVE READ THE MANUAL INSTALL INSTRUCTIONS**
86+
87+
**THIS PAGE ONLY CONTAINS ONE PART OF THE PATCH. YOU NEED OTHER FILES FOR THE MOD TO WORK**
88+
89+
If you really want to install manually, follow the [manual install instructions](https://07th-mod.com/wiki/Higurashi/Manual-Installation/).
4490
45-
[PUT GENERAL DESCRIPTION HERE]
91+
----
4692
4793
# Changelog
4894

0 commit comments

Comments
 (0)