forked from CCExtractor/ccextractor
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c29a4a0
commit 0f903b8
Showing
1 changed file
with
116 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 |
---|---|---|
|
@@ -2,8 +2,18 @@ name: Build CCExtractor on Windows | |
|
||
on: | ||
push: | ||
paths: | ||
- ".github/workflows/build_windows.yml" | ||
- "**.c" | ||
- "**.h" | ||
- "windows/**" | ||
pull_request: | ||
types: [opened, synchronize, reopened] | ||
paths: | ||
- ".github/workflows/build_windows.yml" | ||
- "**.c" | ||
- "**.h" | ||
- "windows/**" | ||
|
||
jobs: | ||
build_non_ocr_release: | ||
|
@@ -38,3 +48,109 @@ jobs: | |
path: | | ||
./windows/x64/Release/ccextractorwin.exe | ||
./windows/x64/Release/*.dll | ||
build_non_ocr_debug: | ||
runs-on: windows-2019 | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
- name: Setup MSBuild.exe | ||
uses: microsoft/[email protected] | ||
- name: Install llvm and clang | ||
run: choco install llvm | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.56.0 | ||
override: true | ||
- name: Install Win 10 SDK | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
- name: build Debug | ||
env: | ||
LIBCLANG_PATH: "C:\\Program Files\\LLVM\\lib" | ||
LLVM_CONFIG_PATH: "C:\\Program Files\\LLVM\\bin\\llvm-config" | ||
CARGO_TARGET_DIR: "..\\..\\windows" | ||
BINDGEN_EXTRA_CLANG_ARGS: -fmsc-version=0 | ||
run: msbuild ccextractor.sln /p:Configuration=Debug /p:Platform=x64 | ||
working-directory: ./windows | ||
- name: Display version information | ||
run: ./ccextractorwin.exe --version | ||
working-directory: ./windows/x64/Debug | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: CCExtractor Windows Non-OCR Debug build | ||
path: | | ||
./windows/x64/Debug/ccextractorwin.exe | ||
./windows/x64/Debug/ccextractorwin.pdb | ||
./windows/x64/Debug/*.dll | ||
build_ocr_hardsubx_release: | ||
runs-on: windows-2019 | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
- name: Setup MSBuild.exe | ||
uses: microsoft/[email protected] | ||
- name: Install llvm and clang | ||
uses: egor-tensin/setup-clang@v1 | ||
with: | ||
version: latest | ||
platform: x86 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.56.0 | ||
override: true | ||
target: i686-pc-windows-msvc | ||
- name: Install Win 10 SDK | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
- name: build Release-Full | ||
env: | ||
LIBCLANG_PATH: "C:\\Program Files\\LLVM\\lib" | ||
LLVM_CONFIG_PATH: "C:\\Program Files\\LLVM\\bin\\llvm-config" | ||
CARGO_TARGET_DIR: "..\\..\\windows" | ||
BINDGEN_EXTRA_CLANG_ARGS: -fmsc-version=0 | ||
run: msbuild ccextractor.sln /p:Configuration=Release-Full /p:Platform=Win32 | ||
working-directory: ./windows | ||
- name: Display version information | ||
run: ./ccextractorwinfull.exe --version | ||
working-directory: ./windows/Release-Full | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: CCExtractor Windows OCR and HardSubX Release build | ||
path: | | ||
./windows/Release-Full/ccextractorwinfull.exe | ||
./windows/Release-Full/*.dll | ||
build_ocr_hardsubx_debug: | ||
runs-on: windows-2019 | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
- name: Setup MSBuild.exe | ||
uses: microsoft/[email protected] | ||
- name: Install llvm and clang | ||
uses: egor-tensin/setup-clang@v1 | ||
with: | ||
version: latest | ||
platform: x86 | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: 1.56.0 | ||
override: true | ||
target: i686-pc-windows-msvc | ||
- name: Install Win 10 SDK | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
- name: build Debug-Full | ||
env: | ||
LIBCLANG_PATH: "C:\\Program Files\\LLVM\\lib" | ||
LLVM_CONFIG_PATH: "C:\\Program Files\\LLVM\\bin\\llvm-config" | ||
CARGO_TARGET_DIR: "..\\..\\windows" | ||
BINDGEN_EXTRA_CLANG_ARGS: -fmsc-version=0 | ||
run: msbuild ccextractor.sln /p:Configuration=Debug-Full /p:Platform=Win32 | ||
working-directory: ./windows | ||
- name: Display version information | ||
run: ./ccextractorwinfull.exe --version | ||
working-directory: ./windows/Debug-Full | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: CCExtractor Windows OCR and HardSubX Debug build | ||
path: | | ||
./windows/Debug-Full/ccextractorwinfull.exe | ||
./windows/Debug-Full/ccextractorwinfull.pdb | ||
./windows/Debug-Full/*.dll |