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: 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 working-directory: ./windows - name: Display version information run: ccextractor.exe --version working-directory: ./windows/Release - 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/ - uses: actions/upload-artifact@v1 with: name: CCExtractor Windows Non-OCR Release build path: ./windows/artifacts build_non_ocr_debug: runs-on: windows-latest steps: - name: Check out repository uses: actions/checkout@v1 - name: Setup MSBuild.exe uses: warrenbuckley/Setup-MSBuild@v1 - name: build Debug run: msbuild ccextractor.sln /p:Configuration=Debug working-directory: ./windows - name: Prepare artifacts run: mkdir ./windows/artifacts - name: Copy debug artifacts run: cp ./windows/Debug/ccextractorwin.exe ./windows/artifacts/; cp ./windows/Debug/ccextractorwin.pdb ./windows/artifacts/; cp ./windows/Debug/ccextractorgui.exe ./windows/artifacts/ - uses: actions/upload-artifact@v1 with: name: CCExtractor Windows Non-OCR 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: Prepare artifacts run: mkdir ./windows/artifacts - name: Copy release artifact run: cp ./windows/Release-Full/ccextractorwinfull.exe ./windows/artifacts/; cp ./windows/Release/ccextractorgui.exe ./windows/artifacts/ - uses: actions/upload-artifact@v1 with: name: CCExtractor Windows OCR and HardSubX Release build path: ./windows/artifacts build_ocr_hardsubx_debug: runs-on: windows-latest steps: - name: Check out repository uses: actions/checkout@v1 - name: Setup MSBuild.exe uses: warrenbuckley/Setup-MSBuild@v1 - name: build Debug run: msbuild ccextractor.sln /p:Configuration=Debug-Full working-directory: ./windows - name: Prepare artifacts run: mkdir ./windows/artifacts - name: Copy debug artifact run: cp ./windows/Debug-Full/ccextractorwinfull.exe ./windows/artifacts/; cp ./windows/Debug-Full/ccextractorwinfull.pdb ./windows/artifacts/; cp ./windows/Debug/ccextractorgui.exe ./windows/artifacts/ - uses: actions/upload-artifact@v1 with: name: CCExtractor Windows OCR and HardSubX Debug build path: ./windows/artifacts