Skip to content

Commit 1c33ca7

Browse files
committed
Match runner platform with Codee artifact
1 parent 914275f commit 1c33ca7

1 file changed

Lines changed: 21 additions & 0 deletions

File tree

action.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,24 @@ runs:
1111
run: |
1212
echo "Not supported combination of OS & Arch: ${{ runner.os }} & ${{ runner.arch }}"
1313
exit 1
14+
15+
- name: Match runner platform with Codee artifact
16+
id: mapping
17+
shell: bash
18+
run: |
19+
case "${{ runner.os }}-${{ runner.arch }} in
20+
"Windows-X64")
21+
archive_name=windows-amd64
22+
;;
23+
"Linux-X64")
24+
archive_name=linux-x86_64
25+
;;
26+
"Linux-ARM64")
27+
archive_name=linux-aarch64
28+
;;
29+
*)
30+
exit 1
31+
;;
32+
esac
33+
34+
echo "codee_archive=${archive_name}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)