Skip to content

Commit

Permalink
Started uploading binaries as artifacts in CI scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
LukasBanana committed Aug 11, 2023
1 parent 73788f6 commit fea5d7a
Showing 1 changed file with 17 additions and 8 deletions.
25 changes: 17 additions & 8 deletions .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@ 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' }}
Expand All @@ -28,14 +28,23 @@ jobs:
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 }}


- uses: actions/upload-artifact@v3
name: Upload Binaries
if: matrix.generator == 'Visual Studio 17 2022' && matrix.arch == 'x64' && matrix.lib == 'Release' && matrix.config == 'Release'
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

0 comments on commit fea5d7a

Please sign in to comment.