From fc6f42910e9cfa2d4816c9ebd2c195f1e1733c15 Mon Sep 17 00:00:00 2001 From: Jarod42 Date: Sat, 3 Aug 2024 15:10:58 +0200 Subject: [PATCH] [CI] build and upload installer --- .github/workflows/windows.yml | 24 +++++++++--------------- 1 file changed, 9 insertions(+), 15 deletions(-) diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index f7e5d90831..67c88f6e54 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -38,9 +38,9 @@ jobs: run: cmake --version - name: build stratagus - run: | # -DENABLE_NSIS=ON + run: | mkdir build && cd build - cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_VENDORED_LUA=ON -DBUILD_VENDORED_SDL=ON -DBUILD_VENDORED_MEDIA_LIBS=ON -DENABLE_STDIO_REDIRECT=ON -DBUILD_TESTING=1 + cmake .. -DCMAKE_BUILD_TYPE=Release -DBUILD_VENDORED_LUA=ON -DBUILD_VENDORED_SDL=ON -DBUILD_VENDORED_MEDIA_LIBS=ON -DENABLE_STDIO_REDIRECT=ON -DENABLE_NSIS=ON -DBUILD_TESTING=1 cmake --build . --config Release - name: run tests @@ -51,17 +51,11 @@ jobs: - name: Upload installer uses: actions/upload-artifact@v4 with: - name: stratagus - path: build/Release/**.* + name: stratagus-binaries + path: build/**.exe -# - name: Upload installer -# uses: actions/upload-artifact@v4 -# with: -# name: stratagus-installer.exe -# path: build/**.exe -# -# - name: Upload pdb files -# uses: actions/upload-artifact@v4 -# with: -# name: stratagus_pdbs -# path: "**.pdb" + - name: Upload pdb files + uses: actions/upload-artifact@v4 + with: + name: stratagus_pdbs + path: build/Release/*.pdb