Skip to content

Commit c323fd4

Browse files
authored
Release artifacts
1 parent 27eff99 commit c323fd4

File tree

1 file changed

+22
-3
lines changed

1 file changed

+22
-3
lines changed

.github/workflows/cmake-multi-platform.yml

+22-3
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,16 @@ jobs:
6060
echo "build-output-dir=${{ github.workspace }}/build" >> "$GITHUB_OUTPUT"
6161
echo "vulkan-sdk-dir=${{ github.workspace }}/VULKAN_SDK" >> "$GITHUB_OUTPUT"
6262
63+
- name: Set artifact path (Windows)
64+
shell: bash
65+
run: echo "ARTIFACT_PATH=${{ github.workspace }}\build\apps\viewer\Release\vulkan_splatting_viewer.exe" >> "$GITHUB_ENV"
66+
if: runner.os == 'Windows'
67+
68+
- name: Set artifact path (POSIX)
69+
shell: bash
70+
run: echo "ARTIFACT_PATH=${{ github.workspace }}/build/apps/viewer/vulkan_splatting_viewer" >> "$GITHUB_ENV"
71+
if: runner.os != 'Windows'
72+
6373
- name: Install dependencies
6474
if: matrix.os == 'ubuntu-latest'
6575
run: sudo apt-get update && sudo apt-get install -y libglfw3-dev libglm-dev
@@ -90,6 +100,15 @@ jobs:
90100
uses: actions/upload-artifact@v4
91101
with:
92102
name: vulkan_splatting-${{ matrix.os }}-${{ matrix.c_compiler }}-${{ matrix.build_type }}
93-
path: |
94-
${{ steps.strings.outputs.build-output-dir }}/apps/viewer/vulkan_splatting_viewer
95-
${{ steps.strings.outputs.build-output-dir }}/apps/viewer/Release/vulkan_splatting_viewer.exe
103+
path: ${{ env.ARTIFACT_PATH }}
104+
105+
- name: Release nightly
106+
if: github.ref == 'refs/heads/main'
107+
uses: softprops/action-gh-release@v2
108+
with:
109+
prerelease: true
110+
name: nightly
111+
tag_name: nightly
112+
files: ${{ env.ARTIFACT_PATH }}
113+
fail_on_unmatched_files: true
114+

0 commit comments

Comments
 (0)