Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
Tarun-Arora committed Aug 14, 2022
1 parent c29a4a0 commit 0f903b8
Showing 1 changed file with 116 additions and 0 deletions.
116 changes: 116 additions & 0 deletions .github/workflows/build_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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

0 comments on commit 0f903b8

Please sign in to comment.