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 12, 2023
1 parent 73788f6 commit c65d5d6
Showing 1 changed file with 21 additions and 8 deletions.
29 changes: 21 additions & 8 deletions .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit c65d5d6

Please sign in to comment.