Skip to content

Commit 7459770

Browse files
committed
Update to new style build script
1 parent c5cc1da commit 7459770

File tree

1 file changed

+30
-38
lines changed

1 file changed

+30
-38
lines changed

.github/workflows/pr_compile_scripts.yml

Lines changed: 30 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -6,61 +6,53 @@ on:
66

77
jobs:
88
dll_build:
9-
name: Build DLL
9+
name: Build DLL and Standalone Compiler
1010
runs-on: ubuntu-22.04
11+
permissions:
12+
contents: write
13+
strategy:
14+
matrix:
15+
python-version: [3.8]
1116
steps:
12-
- name: Checkout the repository
13-
uses: actions/checkout@v3
17+
- name: Force git to use CRLF (on ubuntu runner, will checkout as LF otherwise)
18+
run: git config --global core.autocrlf true # Forces LF on the server to convert to CRLF locally
19+
20+
- name: Checkout the script repository
21+
uses: actions/checkout@v4
22+
23+
- name: Checkout the higurashi-assembly (DLL) repository
24+
uses: actions/checkout@v4
1425
with:
1526
repository: 07th-mod/higurashi-assembly
1627
ref: console-arcs
28+
path: ./dll/
1729

1830
# Note: This uses the mono bundled with Ubuntu to build the project
19-
- name: Compile project
31+
- name: Compile DLL
2032
run: msbuild /p:Configuration=Release
33+
working-directory: ./dll/
34+
35+
- name: Compile standalone Higurashi Script Compiler
36+
run: msbuild /p:Configuration=ScriptCompiler
37+
working-directory: ./dll/
2138

2239
- name: Save Git Hash
2340
run: >-
2441
git show --pretty="format:Commit: %H %d%nDate: %cs%n%n%B" --no-patch > ./bin/Release/Assembly-CSharp.version.txt
42+
working-directory: ./dll/
2543

26-
- name: Upload DLL as Artifact
27-
uses: actions/upload-artifact@v4
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-
35-
windows_build:
36-
name: Windows Build
37-
needs: dll_build
38-
runs-on: windows-latest
39-
permissions:
40-
contents: write
41-
strategy:
42-
matrix:
43-
python-version: [3.8]
44-
steps:
45-
- name: Checkout the repository
46-
uses: actions/checkout@v3
44+
- name: Move bin/ folder out of dll/ folder
45+
run: mv ./dll/bin/ .
4746

48-
# Download Windows artifacts
49-
- name: Download DLL
50-
uses: actions/download-artifact@v4
51-
with:
52-
name: higurashi-dll
53-
54-
# Setup python (Windows VM is Python 3.7 by default, we need at least Python 3.8)
55-
- name: Set up Python ${{ matrix.python-version }}
56-
uses: actions/setup-python@v4
57-
with:
58-
python-version: ${{ matrix.python-version }}
47+
# At this point the following important files should exist in the './bin/' folder
48+
# ./bin/ScriptCompiler/System.Core.dll
49+
# ./bin/ScriptCompiler/Antlr3.Runtime.dll
50+
# ./bin/ScriptCompiler/HigurashiScriptCompiler.exe
51+
# ./bin/Release/Assembly-CSharp.dll
52+
# ./bin/Release/Assembly-CSharp.version.txt
5953

6054
- name: Run Release Script
6155
id: run_release
62-
env:
63-
HIGURASHI_BASE_EXTRACT_KEY: ${{ secrets.HIGURASHI_BASE_EXTRACT_KEY }}
6456
run: |
6557
curl -OJ https://raw.githubusercontent.com/07th-mod/higurashi_release/master/deploy_higurashi/deploy_higurashi.py
6658
python deploy_higurashi.py ${{ github.event.repository.name }}

0 commit comments

Comments
 (0)