-
Notifications
You must be signed in to change notification settings - Fork 440
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of https://github.com/CCExtractor/ccextractor i…
…nto qualip-ocr_bitmap-last_font_tag
- Loading branch information
Showing
40 changed files
with
1,322 additions
and
1,156 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
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
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 |
---|---|---|
|
@@ -3,6 +3,8 @@ name: Build CCExtractor on Windows | |
env: | ||
RUSTFLAGS: -Ctarget-feature=+crt-static | ||
VCPKG_DEFAULT_TRIPLET: x64-windows-static | ||
VCPKG_DEFAULT_BINARY_CACHE: C:\vcpkg\.cache | ||
VCPKG_COMMIT: fba75d09065fcc76a25dcf386b1d00d33f5175af | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -22,65 +24,83 @@ on: | |
|
||
jobs: | ||
build_release: | ||
runs-on: windows-2019 | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Setup MSBuild.exe | ||
uses: microsoft/[email protected] | ||
- name: Install llvm and clang | ||
run: choco install llvm gpac | ||
with: | ||
msbuild-architecture: x64 | ||
- name: Install gpac | ||
run: choco install gpac --version 2.4.0 | ||
- name: Setup vcpkg | ||
run: mkdir C:\vcpkg\.cache | ||
- name: Cache vcpkg | ||
id: cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
C:\vcpkg\.cache | ||
key: vcpkg-${{ runner.os }}-${{ env.VCPKG_COMMIT }} | ||
- name: Build vcpkg | ||
run: | | ||
git clone https://github.com/microsoft/vcpkg | ||
./vcpkg/bootstrap-vcpkg.bat | ||
- name: Install dependencies | ||
run: ${{ github.workspace }}/vcpkg/vcpkg.exe install --x-install-root ${{ github.workspace }}/vcpkg/installed/ | ||
working-directory: windows | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
override: true | ||
- name: Install Win 10 SDK | ||
uses: ilammy/msvc-dev-cmd@v1 | ||
- name: Setup Vcpkg | ||
id: vcpkg | ||
uses: friendlyanon/setup-vcpkg@v1 | ||
with: | ||
committish: "2023.08.09" | ||
cache-version: "3" | ||
ignore-reserve-cache-error: true | ||
- name: Install dependencies | ||
run: cd vcpkg && vcpkg integrate install && vcpkg install leptonica tesseract ffmpeg --triplet x64-windows-static | ||
- 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 | ||
VCPKG_ROOT: ${{ github.workspace }}\vcpkg | ||
VCPKG_ROOT: ${{ github.workspace }}/vcpkg | ||
run: msbuild ccextractor.sln /p:Configuration=Release-Full /p:Platform=x64 | ||
working-directory: ./windows | ||
- name: Display version information | ||
run: ./ccextractorwinfull.exe --version | ||
working-directory: ./windows/x64/Release-Full | ||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: CCExtractor Windows Release build | ||
path: | | ||
./windows/x64/Release-Full/ccextractorwinfull.exe | ||
./windows/x64/Release-Full/*.dll | ||
build_debug: | ||
runs-on: windows-2019 | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Check out repository | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Setup MSBuild.exe | ||
uses: microsoft/[email protected] | ||
- name: Install llvm and clang | ||
run: choco install llvm gpac | ||
- name: Setup Vcpkg | ||
id: vcpkg | ||
uses: friendlyanon/setup-vcpkg@v1 | ||
with: | ||
committish: "2023.08.09" | ||
cache-version: "3" | ||
ignore-reserve-cache-error: true | ||
msbuild-architecture: x64 | ||
- name: Install gpac | ||
run: choco install gpac --version 2.4.0 | ||
- name: Setup vcpkg | ||
run: mkdir C:\vcpkg\.cache | ||
- name: Cache vcpkg | ||
id: cache | ||
uses: actions/cache@v3 | ||
with: | ||
path: | | ||
C:\vcpkg\.cache | ||
key: vcpkg-${{ runner.os }}-${{ env.VCPKG_COMMIT }} | ||
- name: Build vcpkg | ||
run: | | ||
git clone https://github.com/microsoft/vcpkg | ||
./vcpkg/bootstrap-vcpkg.bat | ||
- name: Install dependencies | ||
run: cd vcpkg && vcpkg integrate install && vcpkg install leptonica tesseract ffmpeg --triplet x64-windows-static | ||
run: ${{ github.workspace }}/vcpkg/vcpkg.exe install --x-install-root ${{ github.workspace }}/vcpkg/installed/ | ||
working-directory: windows | ||
- uses: actions-rs/toolchain@v1 | ||
with: | ||
toolchain: stable | ||
|
@@ -93,13 +113,14 @@ jobs: | |
LLVM_CONFIG_PATH: "C:\\Program Files\\LLVM\\bin\\llvm-config" | ||
CARGO_TARGET_DIR: "..\\..\\windows" | ||
BINDGEN_EXTRA_CLANG_ARGS: -fmsc-version=0 | ||
VCPKG_ROOT: ${{ github.workspace }}\vcpkg | ||
VCPKG_ROOT: ${{ github.workspace }}/vcpkg | ||
run: msbuild ccextractor.sln /p:Configuration=Debug-Full /p:Platform=x64 | ||
working-directory: ./windows | ||
- name: Display version information | ||
continue-on-error: true | ||
run: ./ccextractorwinfull.exe --version | ||
working-directory: ./windows/x64/Debug-Full | ||
- uses: actions/upload-artifact@v3 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
name: CCExtractor Windows Debug build | ||
path: | | ||
|
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
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
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
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
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
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
Oops, something went wrong.