Skip to content

Commit 7b46bda

Browse files
committed
ci: update test workflow to include architecture and build type for artifacts
1 parent f43ad3c commit 7b46bda

1 file changed

Lines changed: 10 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,26 @@ jobs:
2121
os: ubuntu-22.04
2222
use_docker: true
2323
script_name: ./build-alpine
24+
arch: amd64
25+
build_type: alpine
2426
- job_name: 'Build dev version in Jammy'
2527
os: ubuntu-22.04
2628
use_docker: false
2729
script_name: ./build-linux
30+
arch: amd64
31+
build_type: jammy
2832
- job_name: 'Build static on amd64 OSX'
2933
os: macos-13
3034
use_docker: false
3135
script_name: ./build-osx
36+
arch: amd64
37+
build_type: osx
3238
- job_name: 'Build static on arm64 OSX'
3339
os: macos-14
3440
use_docker: false
3541
script_name: ./build-osx
42+
arch: arm64
43+
build_type: osx
3644

3745
steps:
3846
- uses: actions/checkout@v4
@@ -48,7 +56,7 @@ jobs:
4856
- name: Create artifact
4957
run: |
5058
os="${{ runner.os }}"
51-
assets="${{ env.APP_NAME }}_$(echo "${{ runner.os }}" | tr '[:upper:]' '[:lower:]')_amd64"
59+
assets="${{ env.APP_NAME }}_${{ matrix.build_type }}_${{ matrix.arch }}"
5260
echo "$assets"
5361
mkdir -p "dist/$assets"
5462
if [[ "${{ runner.os }}" == Windows ]]; then
@@ -70,7 +78,7 @@ jobs:
7078
shell: bash
7179
- uses: actions/upload-artifact@v4
7280
with:
73-
name: artifact-${{ matrix.os }}-amd64
81+
name: artifact-${{ matrix.build_type }}-${{ matrix.arch }}
7482
path: |
7583
dist/*.tar.gz
7684
dist/*.zip

0 commit comments

Comments
 (0)