From 32fe4a16d9400e541db37c57d445178331486a84 Mon Sep 17 00:00:00 2001 From: Laura Hermanns Date: Fri, 11 Aug 2023 19:07:09 -0400 Subject: [PATCH] Started uploading binaries as artifacts in CI scripts. --- .github/workflows/ci_windows.yml | 30 +++++++++++++++++++----------- 1 file changed, 19 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci_windows.yml b/.github/workflows/ci_windows.yml index e6a8844212..ad3eb6806d 100644 --- a/.github/workflows/ci_windows.yml +++ b/.github/workflows/ci_windows.yml @@ -11,31 +11,39 @@ jobs: strategy: matrix: generator: [Visual Studio 16 2019, Visual Studio 17 2022] - arch: [Win32, x64] - lib: [Shared, Static] - config: [Debug, Release] + arch: [x64] + lib: [Shared] + config: [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 + uses: actions/checkout@v3 + with: git clone https://github.com/LukasBanana/GaussianLib.git - name: Configure CMake run: > cmake -G "${{ matrix.generator }}" -A "${{ matrix.arch }}" -S . -B ${{ github.workspace }}/build -DLLGL_BUILD_STATIC_LIB=${{ matrix.lib == 'Static' && 'ON' || 'OFF' }} - -DLLGL_BUILD_RENDERER_OPENGL=ON - -DLLGL_BUILD_RENDERER_DIRECT3D11=ON - -DLLGL_BUILD_RENDERER_DIRECT3D12=ON + -DLLGL_BUILD_RENDERER_OPENGL=OFF + -DLLGL_BUILD_RENDERER_DIRECT3D11=OFF + -DLLGL_BUILD_RENDERER_DIRECT3D12=OFF -DLLGL_BUILD_EXAMPLES=ON -DLLGL_BUILD_TESTS=ON - -DLLGL_BUILD_WRAPPER_C99=ON + -DLLGL_BUILD_WRAPPER_C99=OFF -DGaussLib_INCLUDE_DIR:STRING="GaussianLib/include" - name: Build run: cmake --build ${{ github.workspace }}/build --config ${{ matrix.config }} - + + - name: Upload Binaries + uses: actions/upload-artifact@v3 + if: matrix.generator == 'Visual Studio 17 2022' + with: + name: windows-binaries + path: | + ${{ github.workspace }}/build/build/Release/LLGL*.dll + ${{ github.workspace }}/build/build/Release/Example_*.exe + ${{ github.workspace }}/build/build/Release/Testbed.exe