diff --git a/.github/workflows/ci_windows.yml b/.github/workflows/ci_windows.yml index e6a8844212..b8eae86095 100644 --- a/.github/workflows/ci_windows.yml +++ b/.github/workflows/ci_windows.yml @@ -15,18 +15,18 @@ jobs: lib: [Shared, Static] config: [Debug, Release] fail-fast: false - + runs-on: ${{ matrix.generator == 'Visual Studio 17 2022' && 'windows-latest' || 'windows-2019' }} steps: - - uses: actions/checkout@v3 - - - name: Checkout Dependencies - run: git clone https://github.com/LukasBanana/GaussianLib.git + - name: Checkout Repository + uses: actions/checkout@v3 + with: + submodules: recursive - name: Configure CMake run: > - cmake -G "${{ matrix.generator }}" -A "${{ matrix.arch }}" -S . -B ${{ github.workspace }}/build + cmake -G "${{ matrix.generator }}" -A "${{ matrix.arch }}" -S . -B ${{ github.workspace }}/${{ matrix.arch }} -DLLGL_BUILD_STATIC_LIB=${{ matrix.lib == 'Static' && 'ON' || 'OFF' }} -DLLGL_BUILD_RENDERER_OPENGL=ON -DLLGL_BUILD_RENDERER_DIRECT3D11=ON @@ -37,5 +37,18 @@ jobs: -DGaussLib_INCLUDE_DIR:STRING="GaussianLib/include" - name: Build - run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.config }} - + run: | + cmake --build ${{ github.workspace }}/${{ matrix.arch }} --config ${{ matrix.config }} + echo "LLGL built on github.com with ${{ matrix.generator }} for ${{ matrix.arch }}." > ${{ github.workspace }}/build/build/Release/README.txt + echo " Place at root of LLGL repository to run examples and testbed." >> ${{ github.workspace }}/build/build/Release/README.txt + + - name: Upload Binaries + uses: actions/upload-artifact@v3 + if: matrix.generator == 'Visual Studio 17 2022' && matrix.arch == 'x64' && matrix.lib == 'Shared' && matrix.config == 'Release' + with: + name: windows-binaries-${{ matrix.arch }} + path: | + ${{ github.workspace }}/${{ matrix.arch }}/build/Release/README.txt + ${{ github.workspace }}/${{ matrix.arch }}/build/Release/LLGL*.dll + ${{ github.workspace }}/${{ matrix.arch }}/build/Release/Example_*.exe + ${{ github.workspace }}/${{ matrix.arch }}/build/Release/Testbed.exe