Skip to content

Commit 430d49b

Browse files
committed
ci: use nicer artifact names
Now that we have both Intel and ARM builds, we need to be able to tell them apart.
1 parent 96a429e commit 430d49b

File tree

1 file changed

+27
-1
lines changed

1 file changed

+27
-1
lines changed

.github/workflows/ci.yml

Lines changed: 27 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,10 +163,36 @@ jobs:
163163
if: runner.os == 'Windows'
164164
run: GZIP=-9 tar -czf echidna.tar.gz -C $APPDATA/local/bin/ echidna.exe
165165

166+
- name: Generate artifact name
167+
id: artifact-name
168+
run: |
169+
case "$OS-$ARCH" in
170+
macOS-ARM64)
171+
NAME="aarch64-macos"
172+
;;
173+
macOS-X64)
174+
NAME="x86_64-macos"
175+
;;
176+
Windows-X64)
177+
NAME="x86_64-windows"
178+
;;
179+
Linux-X64)
180+
NAME="x86_64-linux"
181+
;;
182+
*)
183+
echo "Unknown os-arch combo: ${OS}-${ARCH}"
184+
exit 1
185+
;;
186+
esac
187+
echo "name=${NAME}" >> "$GITHUB_OUTPUT"
188+
env:
189+
OS: ${{ runner.os }}
190+
ARCH: ${{ runner.arch }}
191+
166192
- name: Upload artifact
167193
uses: actions/upload-artifact@v3
168194
with:
169-
name: echidna-${{ runner.os }}-${{ runner.arch }}
195+
name: echidna-${{ steps.artifact-name.outputs.name }}
170196
path: echidna.tar.gz
171197

172198
- name: Build and copy test suite

0 commit comments

Comments
 (0)