|
6 | 6 |
|
7 | 7 | jobs:
|
8 | 8 | dll_build:
|
9 |
| - name: Build DLL |
| 9 | + name: Build DLL and Standalone Compiler |
10 | 10 | runs-on: ubuntu-22.04
|
| 11 | + permissions: |
| 12 | + contents: write |
| 13 | + strategy: |
| 14 | + matrix: |
| 15 | + python-version: [3.8] |
11 | 16 | 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 |
14 | 25 | with:
|
15 | 26 | repository: 07th-mod/higurashi-assembly
|
16 | 27 | ref: console-arcs
|
| 28 | + path: ./dll/ |
17 | 29 |
|
18 | 30 | # Note: This uses the mono bundled with Ubuntu to build the project
|
19 |
| - - name: Compile project |
| 31 | + - name: Compile DLL |
20 | 32 | 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/ |
21 | 38 |
|
22 | 39 | - name: Save Git Hash
|
23 | 40 | run: >-
|
24 | 41 | git show --pretty="format:Commit: %H %d%nDate: %cs%n%n%B" --no-patch > ./bin/Release/Assembly-CSharp.version.txt
|
| 42 | + working-directory: ./dll/ |
25 | 43 |
|
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/ . |
47 | 46 |
|
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 |
59 | 53 |
|
60 | 54 | - name: Run Release Script
|
61 | 55 | id: run_release
|
62 |
| - env: |
63 |
| - HIGURASHI_BASE_EXTRACT_KEY: ${{ secrets.HIGURASHI_BASE_EXTRACT_KEY }} |
64 | 56 | run: |
|
65 | 57 | curl -OJ https://raw.githubusercontent.com/07th-mod/higurashi_release/master/deploy_higurashi/deploy_higurashi.py
|
66 | 58 | python deploy_higurashi.py ${{ github.event.repository.name }}
|
|
0 commit comments