@@ -11,6 +11,9 @@ permissions:
1111jobs :
1212 build :
1313 runs-on : windows-latest
14+ defaults :
15+ run :
16+ shell : pwsh
1417
1518 steps :
1619 - name : Checkout repository
@@ -21,26 +24,41 @@ jobs:
2124 with :
2225 arch : x64
2326
24- - name : Install LuaJIT
25- uses : leafo/gh-actions-lua@v12
26- with :
27- luaVersion : ' luajit-2.1'
27+ - name : Download sdk
28+ run : |
29+ Invoke-WebRequest -UserAgent "Wget" -Uri https://spring-fragrance.mints.ne.jp/aviutl/aviutl2_sdk.zip -OutFile aviutl2_sdk.zip
30+ Expand-Archive -Path aviutl2_sdk.zip -DestinationPath ./modules/aviutl2_sdk -Force
31+ Remove-Item aviutl2_sdk.zip -Force
32+
33+ - name : Convert file encoding
34+ run : |
35+ $folder = "./modules/aviutl2_sdk"
36+ Get-ChildItem -Path $folder -Filter "*.h" -Recurse | ForEach-Object {
37+ $file = $_.FullName
38+ $content = Get-Content $file -Raw -Encoding "shift_jis"
39+ $content = $content -replace "`r`n", "`n"
40+ Set-Content $file -Value $content -Encoding utf8
41+ }
2842
2943 - name : Build
3044 run : |
3145 cd ${{ github.workspace }}
32- cmake -S dll_src -B dll_src/build -DCMAKE_GENERATOR_PLATFORM=x64
33- cmake --build dll_src/build --config Release
46+ $version = "${{ github.ref_name }}" -replace '^v', ''
47+ cmake -S modules -B modules/build -DCMAKE_GENERATOR_PLATFORM=x64 -DVERSION="$version"
48+ cmake --build modules/build --config Release
3449
3550 - name : Upload artifact
3651 uses : actions/upload-artifact@v4
3752 with :
38- name : publish
39- path : ${{ github.workspace }}/dll_src /build/Release/*.dll
53+ name : module
54+ path : ${{ github.workspace }}/modules /build/Release/*.mod2
4055
4156 releaser :
4257 needs : build
4358 runs-on : ubuntu-latest
59+ defaults :
60+ run :
61+ shell : bash
4462
4563 env :
4664 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
@@ -50,13 +68,12 @@ jobs:
5068 uses : actions/checkout@v4
5169 with :
5270 fetch-depth : 0
53- submodules : " recursive"
5471
5572 - name : Download artifact
5673 uses : actions/download-artifact@v4
5774 with :
58- name : publish
59- path : ${{ github.workspace }}/build/publish
75+ name : module
76+ path : ${{ github.workspace }}/modules/ build/Release
6077
6178 - name : Extract script name
6279 run : |
@@ -67,15 +84,18 @@ jobs:
6784 - name : Setup python
6885 uses : actions/setup-python@v5
6986 with :
70- python-version : ' 3.11 '
87+ python-version : ' 3.14 '
7188
7289 - name : Build script
7390 run : |
74- python tools/build.py --tag ${{ github.ref_name }}
91+ pip install git+https://github.com/korarei/AviUtl2_Astra.git@v0.3.0
92+ cd ${{ github.workspace }}/scripts
93+ astra build -v ${{ github.ref_name }}
94+ astra release
7595
7696 - name : Create release
7797 uses : softprops/action-gh-release@v2
7898 with :
7999 name : ${{ env.SCRIPT_NAME }}_${{ github.ref_name }}
80- files : ' build /*.zip'
81- body_path : build/release_note .txt
100+ files : ' scripts/release /*.zip'
101+ body_path : scripts/release/release_notes .txt
0 commit comments