File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed
Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 1010 steps :
1111 - uses : actions/checkout@v4
1212
13+ - name : Sanitize branch name for artifact naming
14+ id : sanitize
15+ run : echo "ref_name=$(echo '${{ github.ref_name }}' | sed 's/\//-/g')" >> $GITHUB_OUTPUT
16+
1317 - name : Cache SDL
1418 uses : actions/cache@v4
1519 with :
2125 brew install cmake pkg-config nasm
2226
2327 - name : Build macOS (x86_64 + arm64)
28+ env :
29+ GITHUB_REF_NAME : ${{ steps.sanitize.outputs.ref_name }}
2430 run : |
2531 cd MacOS
2632 make clean
2935 - name : Upload macOS build artifact
3036 uses : actions/upload-artifact@v4
3137 with :
32- name : Kiwi8-${{ github .ref_name }}-macOS
38+ name : Kiwi8-${{ steps.sanitize.outputs .ref_name }}-macOS
3339 path : MacOS/release/
3440 retention-days : 7
3541
3844 steps :
3945 - uses : actions/checkout@v4
4046
47+ - name : Sanitize branch name for artifact naming
48+ id : sanitize
49+ shell : pwsh
50+ run : echo "ref_name=$('${{ github.ref_name }}'.Replace('/', '-'))" >> $env:GITHUB_OUTPUT
51+
4152 - name : Cache SDL
4253 uses : actions/cache@v4
4354 with :
5061 arch : amd64
5162
5263 - name : Build Windows (x64)
64+ env :
65+ GITHUB_REF_NAME : ${{ steps.sanitize.outputs.ref_name }}
5366 shell : cmd
5467 run : |
5568 cd Windows
5972 - name : Upload Windows build artifact
6073 uses : actions/upload-artifact@v4
6174 with :
62- name : Kiwi8-${{ github .ref_name }}-Windows
75+ name : Kiwi8-${{ steps.sanitize.outputs .ref_name }}-Windows
6376 path : Windows\release\
6477 retention-days : 7
You can’t perform that action at this time.
0 commit comments