-
-
Notifications
You must be signed in to change notification settings - Fork 8
89 lines (70 loc) · 3.11 KB
/
pr_compile_scripts.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
name: Generate Compiled Scripts Pull Request
on:
- push
- pull_request
jobs:
dll_build:
name: Build DLL and Standalone Compiler
runs-on: ubuntu-latest
permissions:
contents: write
strategy:
matrix:
python-version: [3.8]
steps:
- name: Force git to use CRLF (on ubuntu runner, will checkout as LF otherwise)
run: git config --global core.autocrlf true # Forces LF on the server to convert to CRLF locally
- name: Checkout the script repository
uses: actions/checkout@v4
- name: Checkout the higurashi-assembly (DLL) repository
uses: actions/checkout@v4
with:
repository: 07th-mod/higurashi-assembly
ref: tsumi-mod
path: ./dll/
# Note: This uses the mono bundled with Ubuntu to build the project
- name: Compile DLL
run: msbuild /p:Configuration=Release
working-directory: ./dll/
- name: Compile standalone Higurashi Script Compiler
run: msbuild /p:Configuration=ScriptCompiler
working-directory: ./dll/
- 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
working-directory: ./dll/
- name: Move bin/ folder out of dll/ folder
run: mv ./dll/bin/ .
# At this point the following important files should exist in the './bin/' folder
# ./bin/ScriptCompiler/System.Core.dll
# ./bin/ScriptCompiler/Antlr3.Runtime.dll
# ./bin/ScriptCompiler/HigurashiScriptCompiler.exe
# ./bin/Release/Assembly-CSharp.dll
# ./bin/Release/Assembly-CSharp.version.txt
- name: Run Release Script
id: run_release
run: |
curl -OJ https://raw.githubusercontent.com/07th-mod/higurashi_release/master/deploy_higurashi/deploy_higurashi.py
python deploy_higurashi.py ${{ github.event.repository.name }}
rm deploy_higurashi.py
# Publish a release
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/') # only publish tagged commits
with:
files: |
output/*.zip
draft: true
name: ${{ steps.run_release.outputs.release_name }} # This output is set in the 'deploy_higurashi.py' script above
body: |
## Install/Update Instructions
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
- [PUT CHANGELOG ITEMS HERE]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}