Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

remove errors annoy unicode len #156

Open
wants to merge 26 commits into
base: dev
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
4b1ce82
.github/workflows/gha-ci.yml: allow manual trigger
AkarinVS Dec 29, 2021
55443ec
Merge remote-tracking branch 'upstream/dev' into mod
AkarinVS May 4, 2022
b1876e5
Merge remote-tracking branch 'upstream/dev' into mod
AkarinVS May 5, 2022
ff0aad7
Merge https://github.com/wangqr/Aegisub:dev into mod
AkarinVS Jul 11, 2022
a59db90
.github/workflows/gha-ci.yml: disable wxWidget debugging to match vcp…
AkarinVS Jul 11, 2022
6d56530
.github/workflows/gha-ci.yml: use our ffms2
AkarinVS Jul 11, 2022
52a0121
.github/workflows/gha-ci.yml: mirror https://ftp.wangqr.tk/aegisub/ae…
AkarinVS Jul 11, 2022
b045465
Spectrum frequency mapping (#1)
MIRIMIRIM Aug 3, 2022
46a6a38
.github/workflows/gha-ci.yml: update macos version
MIRIMIRIM Aug 3, 2022
ad2c14d
src/dialog_colorpicker.cpp: fix build on macOS
AkarinVS Aug 6, 2022
b8dfddd
.github/workflows/gha-ci.yml: disable macOS build for now
AkarinVS Aug 6, 2022
d5c132a
.github/workflows/gha-ci.yml: add assrender, download xy-vsf and vsfm…
MIRIMIRIM Aug 6, 2022
f01d543
feat: add L-SMASH-Works in avs provider
Masaiki Aug 7, 2022
c4b214a
change the function used of L-SMASH-Works in avs provider
Masaiki Aug 7, 2022
0bb2540
Merge pull request #1 from AmusementClub/avs-add-lsmashworks
kedaitinh12 Dec 19, 2022
3193559
removed check'string' from len
kedaitinh12 Dec 19, 2022
c38b6dd
Apply effect won't errors anymore
kedaitinh12 Dec 21, 2022
edd887b
Update gha-ci.yml
MIRIMIRIM Feb 18, 2023
1ae9925
Merge remote-tracking branch 'upstream/dev' into mod
MIRIMIRIM Feb 18, 2023
6ca63cb
.github/workflows/gha-ci.yml: upload build artifacts
AkarinVS Feb 19, 2023
1d215cc
.github/workflows/gha-ci.yml: update GHA versions
AkarinVS Feb 19, 2023
49e383f
fix build for latest boost, skip test on windows
AkarinVS Feb 19, 2023
fe22032
.github/workflows/gha-ci.yml: use boost 1.79.0
AkarinVS Feb 21, 2023
7e1cc63
Revert "fix build for latest boost, skip test on windows"
AkarinVS Feb 21, 2023
31d271b
.github/workflows/gha-ci.yml: disable run-vcpkg's cache
AkarinVS Feb 21, 2023
1bd5b77
Merge pull request #2 from AmusementClub/mod
kedaitinh12 Mar 12, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
71 changes: 55 additions & 16 deletions .github/workflows/gha-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,15 @@ name: GitHubActions CI tests
on:
push:
branches: [master, dev, ci]
pull_request:
# pull_request:
workflow_dispatch:

jobs:
build-nix:
strategy:
matrix:
os: [ubuntu-20.04, macos-10.15]
#os: [ubuntu-20.04, macos-11]
os: [ubuntu-20.04]
build_suite: [autoconf, cmake]
with_coveralls: [no]
# Run one build with gcov and coveralls
Expand All @@ -22,7 +24,7 @@ jobs:

steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: install deps
run: |
Expand Down Expand Up @@ -120,7 +122,7 @@ jobs:

- name: upload artifact
if: ${{ startsWith( matrix.os, 'macos-' ) && matrix.build_suite == 'autoconf' }}
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: aegisub-macos-GHA
path: aegisub-macos-GHA.dmg
Expand All @@ -129,35 +131,49 @@ jobs:
runs-on: windows-latest
steps:
- name: checkout code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: cache vcpkg packages
uses: pat-s/always-upload-cache@v2
uses: pat-s/always-upload-cache@v3
with:
path: C:\Users\runneradmin\AppData\Local\vcpkg\archives
key: vcpkg-archives-${{ github.run_id }}
restore-keys: vcpkg-archives-

- name: Run vcpkg
uses: lukka/run-vcpkg@v7
with:
setupOnly: true
doNotCache: true
vcpkgDirectory: '${{ github.workspace }}/vcpkg'
vcpkgGitCommitId: 96ec7fb25da25e0463446e552d59715a47c95e73 # boost 1.79.0, Apr 21 2022.

- name: install deps
run: |
Invoke-WebRequest -Uri https://github.com/FFMS/ffms2/releases/download/2.23/ffms2-2.23.1-msvc.7z -OutFile vendor/ffms2-2.23.1-msvc.7z

7z.exe x vendor/ffms2-2.23.1-msvc.7z -ovendor/ffms2

Set-Content -Value "" -Path "C:\vcpkg\vcpkg.disable-metrics" -Force
# msys mirrors have deleted the version of libtool used by vcpkg, so we have to update this file.
# see https://github.com/microsoft/vcpkg/commit/fd766eba2b4cf59c7123d46189be373e2cee959d
(Get-Content "${{github.workspace}}\vcpkg\scripts\cmake\vcpkg_acquire_msys.cmake") -replace 'libtool-2.4.6-9-x86_64.pkg.tar.xz', 'libtool-2.4.7-3-x86_64.pkg.tar.zst' -replace 'b309799e5a9d248ef66eaf11a0bd21bf4e8b9bd5c677c627ec83fa760ce9f0b54ddf1b62cbb436e641fbbde71e3b61cb71ff541d866f8ca7717a3a0dbeb00ebf', 'a202ddaefa93d8a4b15431dc514e3a6200c47275c5a0027c09cc32b28bc079b1b9a93d5ef65adafdc9aba5f76a42f3303b1492106ddf72e67f1801ebfe6d02cc' | Set-Content "${{github.workspace}}\vcpkg\scripts\cmake\vcpkg_acquire_msys.cmake"
# zlib: update URL.
(Get-Content "${{github.workspace}}\vcpkg\ports\zlib\portfile.cmake") -replace 'https://www.zlib.net', 'https://www.zlib.net/fossils/' | Set-Content "${{github.workspace}}\vcpkg\ports\zlib\portfile.cmake"

Set-Content -Value "" -Path "${{ github.workspace }}\vcpkg\vcpkg.disable-metrics" -Force
# Fix vcpkg wxwidgets fail when building without debug
(Get-Content "C:\vcpkg\ports\wxwidgets\vcpkg-cmake-wrapper.cmake") -replace ' _find_package', ' #_find_package' | Set-Content "C:\vcpkg\ports\wxwidgets\vcpkg-cmake-wrapper.cmake"
vcpkg.exe install --triplet x64-windows-release avisynthplus boost-asio boost-container boost-crc boost-filesystem boost-flyweight boost-gil boost-interprocess 'boost-locale[icu]' 'boost-regex[icu]' boost-scope-exit boost-thread fftw3 hunspell icu libass libiconv uchardet wxwidgets xaudio2redist gtest
(Get-Content "${{github.workspace}}\vcpkg\ports\wxwidgets\vcpkg-cmake-wrapper.cmake") -replace ' _find_package', ' #_find_package' | Set-Content "${{github.workspace}}\vcpkg\ports\wxwidgets\vcpkg-cmake-wrapper.cmake"
& "${{github.workspace}}\vcpkg\vcpkg.exe" install --triplet x64-windows-release avisynthplus boost-asio boost-container boost-crc boost-filesystem boost-flyweight boost-gil boost-interprocess 'boost-locale[icu]' 'boost-regex[icu]' boost-scope-exit boost-thread fftw3 hunspell icu libass libiconv uchardet wxwidgets xaudio2redist gtest

- name: configure
run: |
bash.exe build/version.sh .
New-Item -Path build-dir -ItemType directory
Set-Location build-dir
cmake.exe '-DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake' '-DVCPKG_TARGET_TRIPLET=x64-windows-release' '-DFFMS2_INCLUDE_DIRS=../vendor/ffms2/ffms2-2.23.1-msvc/include' '-DFFMS2_LIBRARIES=../vendor/ffms2/ffms2-2.23.1-msvc/x64/ffms2.lib' '-DXAUDIO2_REDIST=ON' '-DCMAKE_CXX_FLAGS=/DWIN32 /D_WINDOWS /GR /EHsc /DUNICODE /D_UNICODE /MP' '-DCMAKE_C_FLAGS=/DWIN32 /D_WINDOWS /DUNICODE /D_UNICODE /MP' '-DWITH_TEST=ON' ..
cmake.exe '-DCMAKE_TOOLCHAIN_FILE=${{ github.workspace }}/vcpkg/scripts/buildsystems/vcpkg.cmake' '-DVCPKG_TARGET_TRIPLET=x64-windows-release' '-DFFMS2_INCLUDE_DIRS=../vendor/ffms2/ffms2-2.23.1-msvc/include' '-DFFMS2_LIBRARIES=../vendor/ffms2/ffms2-2.23.1-msvc/x64/ffms2.lib' '-DXAUDIO2_REDIST=ON' '-DCMAKE_CXX_FLAGS=/DWIN32 /D_WINDOWS /GR /EHsc /DUNICODE /D_UNICODE /MP /DwxDEBUG_LEVEL=0' '-DCMAKE_C_FLAGS=/DWIN32 /D_WINDOWS /DUNICODE /D_UNICODE /MP /DwxDEBUG_LEVEL=0' '-DWITH_TEST=ON' ..

- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.0.2
uses: microsoft/setup-msbuild@v1.1

- name: build
run: |
Expand All @@ -169,24 +185,47 @@ jobs:
Set-Location build-dir
MSBuild.exe test.vcxproj -p:Configuration=Release

- name: upload build artifact
if: always()
uses: actions/upload-artifact@v3
with:
name: aegisub-win64-builddir
path: build-dir/

- name: package
run: |
Invoke-WebRequest -Uri https://ftp.wangqr.tk/aegisub/aegisub-win64-cmake-20210713-r9212.zip -OutFile vendor/aegisub9212.zip
Invoke-WebRequest -Uri https://github.com/AmusementClub/Aegisub/releases/download/artifacts/aegisub-win64-cmake-20210713-r9212.zip -OutFile vendor/aegisub9212.zip

7z.exe x vendor/aegisub9212.zip -ovendor/aegisub9212

Invoke-WebRequest -Uri https://github.com/AmusementClub/ffms2/releases/download/nightly-20230218/release-ffms2-x86_64-nightly-20230218-ge4270cc.zip -OutFile vendor/ffms2.zip

7z.exe x vendor/ffms2.zip -ovendor

Invoke-WebRequest -Uri https://github.com/AmusementClub/assrender/releases/download/0.38.0/assrender_v0380_0.17.0.zip -OutFile vendor/assrender.zip
Invoke-WebRequest -Uri https://github.com/HomeOfVapourSynthEvolution/xy-VSFilter/releases/download/r3/xy-VSFilter-r3.7z -OutFile vendor/xy-vsf.7z
Invoke-WebRequest -Uri https://github.com/Masaiki/VSFilterMod/releases/download/r5.2.7/VSFilterMod_bin.zip -OutFile vendor/vsfmod.zip

7z.exe x vendor/assrender.zip -ovendor
7z.exe x vendor/xy-vsf.7z -ovendor
7z.exe x vendor/vsfmod.zip -ovendor

Move-Item -Path build-dir\Release\Aegisub.exe -Destination build-dir\Aegisub.exe
Remove-Item -Path build-dir\Release\*.exp,build-dir\Release\*.lib,build-dir\Release\*.exe
Move-Item -Path build-dir\Aegisub.exe -Destination build-dir\Release\Aegisub.exe
New-Item -Path build-dir\Release\automation -ItemType directory
Copy-Item -Path automation\autoload,automation\demos,automation\include -Destination build-dir\Release\automation -Recurse

Copy-Item -Path C:\vcpkg\installed\x64-windows-release\bin\AviSynth.dll -Destination build-dir\Release
Copy-Item -Path vendor\ffms2\ffms2-2.23.1-msvc\x64\ffms2.dll -Destination build-dir\Release
Copy-Item -Path vendor\aegisub9212\csri,vendor\aegisub9212\dictionaries,vendor\aegisub9212\licenses,vendor\aegisub9212\locale,vendor\aegisub9212\AssDraw3.exe,vendor\aegisub9212\AssDraw3.chm,vendor\aegisub9212\DirectShowSource.dll -Destination build-dir\Release -Recurse
New-Item -Path build-dir\Release\csri -ItemType directory

Copy-Item -Path "${{ github.workspace }}\vcpkg\installed\x64-windows-release\bin\AviSynth.dll" -Destination build-dir\Release
Copy-Item -Path vendor\ffms2.dll -Destination build-dir\Release
Copy-Item -Path vendor\x64\*.dll -Destination build-dir\Release\csri
Copy-Item -Path vendor\plugins64\xy-VSFilter.dll -Destination build-dir\Release\csri
Copy-Item -Path vendor\aegisub9212\dictionaries,vendor\aegisub9212\licenses,vendor\aegisub9212\locale,vendor\aegisub9212\AssDraw3.exe,vendor\aegisub9212\AssDraw3.chm,vendor\aegisub9212\DirectShowSource.dll -Destination build-dir\Release -Recurse

- name: upload artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: aegisub-win64-cmake-GHA
path: build-dir/Release
2 changes: 1 addition & 1 deletion automation/autoload/cleantags-autoload.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
--[[
--[[
"Clean Tags" -- An Auto4 LUA script for cleaning up ASS subtitle lines of badly-formed override
blocks and redundant/duplicate tags
* Designed to work for Aegisub 2.0 and above (only pre-release version was available at the time of
Expand Down
Loading