Add OCR build to Windows action

Adds a (likely non-working) build stage for building with OCR to the Windows GitHub actions, so we can assure that Windows keeps building with OCR just fine.
This commit is contained in:
Willem 2020-04-25 12:32:04 +02:00 committed by GitHub
parent 1534d81ae7
commit 18484d555f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -16,7 +16,7 @@ on:
- 'windows/**'
jobs:
build:
build_non_ocr_release:
runs-on: windows-latest
steps:
- name: Check out repository
@ -39,3 +39,26 @@ jobs:
with:
name: CCExtractor Windows Release_or_Debug build
path: ./windows/artifacts
build_ocr_hardsubx_release:
runs-on: windows-latest
steps:
- name: Check out repository
uses: actions/checkout@v1
- name: Setup MSBuild.exe
uses: warrenbuckley/Setup-MSBuild@v1
- name: build Release
run: msbuild ccextractor.sln /p:Configuration=Release-Full
working-directory: ./windows
- name: build Debug
run: msbuild ccextractor.sln /p:Configuration=Debug-Full
working-directory: ./windows
- name: Prepare artifacts
run: mkdir ./windows/artifacts
- name: Copy release artifact
run: cp ./windows/Release/ccextractorwin.exe ./windows/artifacts/; cp ./windows/Release/ccextractorgui.exe ./windows/artifacts/
- name: Copy debug artifact
run: cp ./windows/Debug/ccextractorwin.exe ./windows/artifacts/ccextractorwin_debug.exe; cp ./windows/Debug/ccextractorgui.exe ./windows/artifacts/ccextractorgui_debug.exe
- uses: actions/upload-artifact@v1
with:
name: CCExtractor OCR and HardSubX Windows Release_or_Debug build
path: ./windows/artifacts