Skip to content

Commit 17a3cf9

Browse files
committed
Fix upload file namespace
1 parent d364d59 commit 17a3cf9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build-upload.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,6 @@ jobs:
146146
- name: Build project
147147
run: ninja -C ${{ env.BUILD_DIR }}
148148

149-
# (You can add tests here if you want for the release builds)
150-
151149
- name: Install project
152150
run: |
153151
ninja -C ${{ env.BUILD_DIR }} install
@@ -159,11 +157,17 @@ jobs:
159157
cp COPYING crest/LICENSE
160158
cp COPYING.LESSER crest/LICENSE.LESSER
161159
cp _dist/bin/crest crest/
162-
OUTPUT="crest-${{ matrix.toolchain.compiler }}-${{ matrix.toolchain.version }}-${{ matrix.os }}.tar"
160+
COMPILER_NAME="${{ matrix.toolchain.compiler }}"
161+
# Map GCC → gnu for backwards-compatible file names
162+
if [ "$COMPILER_NAME" = "gcc" ]; then
163+
COMPILER_NAME="gnu"
164+
fi
165+
OUTPUT="crest-${COMPILER_NAME}-${{ matrix.toolchain.version }}-${{ matrix.os }}.tar"
163166
tar cvf "$OUTPUT" crest
164167
xz -T0 "$OUTPUT"
165168
echo "CREST_OUTPUT=${OUTPUT}.xz" >> $GITHUB_ENV
166169
170+
167171
- name: Upload package
168172
uses: actions/upload-artifact@v4
169173
with:

0 commit comments

Comments
 (0)