From c323fd459886737f5dea7bb1abd5414456187918 Mon Sep 17 00:00:00 2001 From: Steven <38004233+shg8@users.noreply.github.com> Date: Thu, 14 Mar 2024 03:34:24 -0500 Subject: [PATCH] Release artifacts --- .github/workflows/cmake-multi-platform.yml | 25 +++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 60db8f8..3f19b98 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -60,6 +60,16 @@ jobs: echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT" echo "vulkan-sdk-dir=${{ github.workspace }}/VULKAN_SDK" >> "$GITHUB_OUTPUT" + - name: Set artifact path (Windows) + shell: bash + run: echo "ARTIFACT_PATH=${{ github.workspace }}\build\apps\viewer\Release\vulkan_splatting_viewer.exe" >> "$GITHUB_ENV" + if: runner.os == 'Windows' + + - name: Set artifact path (POSIX) + shell: bash + run: echo "ARTIFACT_PATH=${{ github.workspace }}/build/apps/viewer/vulkan_splatting_viewer" >> "$GITHUB_ENV" + if: runner.os != 'Windows' + - name: Install dependencies if: matrix.os == 'ubuntu-latest' run: sudo apt-get update && sudo apt-get install -y libglfw3-dev libglm-dev @@ -90,6 +100,15 @@ jobs: uses: actions/upload-artifact@v4 with: name: vulkan_splatting-${{ matrix.os }}-${{ matrix.c_compiler }}-${{ matrix.build_type }} - path: | - ${{ steps.strings.outputs.build-output-dir }}/apps/viewer/vulkan_splatting_viewer - ${{ steps.strings.outputs.build-output-dir }}/apps/viewer/Release/vulkan_splatting_viewer.exe + path: ${{ env.ARTIFACT_PATH }} + + - name: Release nightly + if: github.ref == 'refs/heads/main' + uses: softprops/action-gh-release@v2 + with: + prerelease: true + name: nightly + tag_name: nightly + files: ${{ env.ARTIFACT_PATH }} + fail_on_unmatched_files: true +