Skip to content

Commit 080da64

Browse files
committed
chore(release.yml): simplify CI workflow by reducing target OS and architecture combinations
fix(release.yml): change build output filenames to reflect updated OS targets and architectures
1 parent 95c43ac commit 080da64

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,7 @@ jobs:
1111

1212
strategy:
1313
matrix:
14-
os: [linux, linux, darwin, darwin, windows] # Spécifiez les systèmes d'exploitation
15-
arch: [amd64, ppc64le, amd64, arm64, amd64] # Spécifiez les architectures
14+
os: [ubuntu-latest, windows, macos] # Changez 'windows-latest' en 'windows'
1615
go-version: [1.23]
1716

1817
steps:
@@ -26,17 +25,15 @@ jobs:
2625

2726
- name: Build
2827
run: |
29-
GOOS=${{ matrix.os }} GOARCH=${{ matrix.arch }} go build -o githubstats-${{ matrix.os }}-${{ matrix.arch }} ./...
28+
GOOS=${{ matrix.os }} GOARCH=amd64 go build -o githubstats-${{ matrix.os }} ./...
3029
3130
- name: Create Release
3231
uses: softprops/action-gh-release@v1
3332
with:
3433
tag_name: ${{ github.ref }}
3534
files: |
36-
githubstats-linux-amd64
37-
githubstats-linux-ppc64le
38-
githubstats-darwin-amd64
39-
githubstats-darwin-arm64
40-
githubstats-windows-amd64.exe
35+
githubstats-ubuntu
36+
githubstats-windows.exe
37+
githubstats-macos
4138
env:
4239
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)