2023.10.23 更新问题修复 #410
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
push: | |
paths: | |
- '**.lua' | |
- '**.cpp' | |
- '**.c' | |
- '**.hpp' | |
- '**.h' | |
- '.gitmodules' | |
- '.gitignore' | |
- '.gitattributes' | |
- 'conanfile.txt' | |
- 'deps/**' | |
- 'src/**' | |
- 'utils/**' | |
pull_request: | |
paths: | |
- '**.lua' | |
- '**.cpp' | |
- '**.c' | |
- '**.hpp' | |
- '**.h' | |
- '.gitmodules' | |
- '.gitignore' | |
- '.gitattributes' | |
- 'conanfile.txt' | |
- 'deps/**' | |
- 'src/**' | |
- 'utils/**' | |
jobs: | |
build: | |
runs-on: windows-2019 | |
steps: | |
- name: checkout | |
uses: actions/checkout@v2 | |
with: | |
submodules: true | |
- name: install-dependencies | |
run: | | |
pip3 install --upgrade conan==1.59.0 requests | |
conan profile new default --detect | |
conan config init | |
- name: configure-msbuild-env | |
uses: microsoft/[email protected] | |
- name: build | |
run: | | |
./generate.bat | |
cd build | |
msbuild umamusume-localify.sln -m -p:Configuration=Release | |
- name: prepare-package | |
run: | | |
mkdir package | |
cp build/bin/x64/Release/version.dll package/version.dll | |
cp -r resources/schinese/localized_data package/localized_data | |
cp resources/config.json package/config.json | |
mkdir package/localized_data/config_schema | |
cp resources/config.schema.json package/localized_data/config_schema/config.schema.json | |
cp resources/config_en.schema.json package/localized_data/config_schema/config_en.schema.json | |
cp resources/config_zh_tw.schema.json package/localized_data/config_schema/config_zh_tw.schema.json | |
cp resources/text_data_info.json package/localized_data/config_schema/text_data_info.json | |
cp resources/text_data_info_i18n_zh.json package/localized_data/config_schema/text_data_info_i18n_zh.json | |
cp resources/text_data_info_i18n_zh_tw.json package/localized_data/config_schema/text_data_info_i18n_zh_tw.json | |
cp resources/legend_g_plugin.exe package/legend_g_plugin.exe.autoupdate | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: trainers-legend-g | |
path: package | |
- uses: actions/upload-artifact@v2 | |
with: | |
name: trainers-legend-g-dll | |
path: package/version.dll |