-
-
Notifications
You must be signed in to change notification settings - Fork 587
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* actions: building and uploading artifacts * actions: release * build script: download ocr model
- Loading branch information
Showing
4 changed files
with
534 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Build and Upload Artifacts | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
pull_request: | ||
branches: [main] | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
if: startsWith(github.ref, 'refs/tags/v') != true | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Setup Windows 10 SDK | ||
uses: GuillaumeFalourd/setup-windows10-sdk-action@v2 | ||
with: | ||
sdk-version: 22621 | ||
- name: Install Python 3.7.9 x86 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.7.9' | ||
architecture: x86 | ||
- name: Install Python 3.7.9 x64 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.7.9' | ||
architecture: x64 | ||
- name: Install Python 3.11.7 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11.7' | ||
- name: Run build script | ||
run: | | ||
python build.py --github-actions | ||
- name: Upload LunaTranslator artifact x86 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: LunaTranslator_x86 | ||
path: build/LunaTranslator_x86.zip | ||
- name: Upload LunaTranslator artifact x64 | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: LunaTranslator | ||
path: build/LunaTranslator.zip |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
tags: | ||
- 'v*' | ||
|
||
jobs: | ||
build: | ||
runs-on: windows-latest | ||
if: startsWith(github.ref, 'refs/tags/v') | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
- name: Setup Windows 10 SDK | ||
uses: GuillaumeFalourd/setup-windows10-sdk-action@v2 | ||
with: | ||
sdk-version: 22621 | ||
- name: Install Python 3.7.9 x86 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.7.9' | ||
architecture: x86 | ||
- name: Install Python 3.7.9 x64 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.7.9' | ||
architecture: x64 | ||
- name: Install Python 3.11.7 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11.7' | ||
- name: Run build script | ||
run: | | ||
python build.py --github-actions | ||
- name: Release LunaTranslator | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
files: | | ||
build/LunaTranslator_x86.zip | ||
build/LunaTranslator.zip | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ build/ | |
|
||
plugins/builds | ||
plugins/build | ||
temp/ | ||
|
||
|
||
LunaTranslator/files/plugins | ||
|
Oops, something went wrong.