Skip to content

Commit 08ae328

Browse files
committed
Refactor build matrix and improve artifact handling
Refactored the build matrix in release.yml to explicitly list OS and architecture combinations in the include section, removing the need for the exclude section. Added if-no-files-found: error to the upload-artifact step to ensure the workflow fails if no artifacts are found. #10
1 parent c2408b5 commit 08ae328

1 file changed

Lines changed: 15 additions & 6 deletions

File tree

‎.github/workflows/release.yml‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,23 +37,31 @@ jobs:
3737
needs: validate
3838
strategy:
3939
matrix:
40-
os: ['ubuntu-latest', 'windows-latest', 'macos-latest']
41-
os_arch: [x64, arm, arm64]
4240
include:
4341
- os: ubuntu-latest
4442
kind: linux
4543
title: linux
44+
os_arch: x64
45+
- os: ubuntu-latest
46+
kind: linux
47+
title: linux
48+
os_arch: arm64
4649
- os: windows-latest
4750
kind: win
4851
title: windows
52+
os_arch: x64
53+
- os: windows-latest
54+
kind: win
55+
title: windows
56+
os_arch: arm64
4957
- os: macos-latest
5058
kind: osx
5159
title: osx
52-
exclude:
53-
- os: windows-latest
54-
os_arch: arm
60+
os_arch: x64
5561
- os: macos-latest
56-
os_arch: arm
62+
kind: osx
63+
title: osx
64+
os_arch: arm64
5765
runs-on: ${{ matrix.os }}
5866

5967
steps:
@@ -94,6 +102,7 @@ jobs:
94102
path: |
95103
${{ github.workspace }}/dist/*.zip
96104
${{ github.workspace }}/dist/*.tar.gz
105+
if-no-files-found: error
97106

98107
release:
99108
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)