name: LibCmo Windows Build on: [workflow_dispatch] jobs: windows-build: strategy: matrix: include: - vs: '2022' msvc_arch: 'x64' runs-on: windows-2022 steps: - name: Checkout Repository uses: actions/checkout@v4 - name: Fetch YYCCommonplace uses: actions/checkout@v4 with: repository: 'yyc12345/YYCCommonplace' ref: 'master' path: 'extern/YYCCommonplace' - name: Build YYCCommonplace shell: cmd run: | CD extern\YYCCommonplace CALL ..\..\.github\scripts\yycc\windows.bat ECHO SET YYCCommonplace_ROOT=%YYCCommonplace_ROOT% > ..\envs.bat CD ..\.. - name: Fetch ZLIB uses: actions/checkout@v4 with: repository: 'madler/zlib' ref: 'v1.3.1' path: 'extern/zlib' - name: Build ZLIB shell: cmd run: | CD extern/zlib ..\..\.github\scripts\zlib\windows.bat ECHO SET ZLIB_ROOT=%ZLIB_ROOT% >> ..\envs.bat CD ..\.. - name: Fetch STB uses: actions/checkout@v4 with: repository: 'nothings/stb' ref: '2e2bef463a5b53ddf8bb788e25da6b8506314c08' path: 'extern/stb' - name: Build STB shell: cmd run: | CD extern/stb ..\..\.github\scripts\stb\windows.bat ECHO SET STB_ROOT=%STB_ROOT% >> ..\envs.bat CD ..\.. - name: Build LibCmo shell: cmd run: | :: Prepare Visual Studio set VS=${{ matrix.vs }} set VCVARS="C:\Program Files (x86)\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" if not exist %VCVARS% set VCVARS="C:\Program Files\Microsoft Visual Studio\%VS%\Enterprise\VC\Auxiliary\Build\vcvarsall.bat" call %VCVARS% ${{ matrix.msvc_arch }} :: Extract saved environment variables CALL .\extern\envs.bat :: Build Project CALL .\.github\scripts\windows.bat - name: Upload Built Artifact uses: actions/upload-artifact@v4 with: name: LibCmo-windows-build path: bin/install/* retention-days: 30 - name: Upload Built Dependencies uses: actions/upload-artifact@v4 with: name: LibCmo-windows-dep path: extern/zlib/install/* retention-days: 30