File tree Expand file tree Collapse file tree 1 file changed +25
-6
lines changed Expand file tree Collapse file tree 1 file changed +25
-6
lines changed Original file line number Diff line number Diff line change 38
38
runs-on : ubuntu-latest
39
39
strategy :
40
40
matrix :
41
- goos : ['windows', 'linux', 'darwin']
42
- goarch : ['amd64', 'arm64']
41
+ target :
42
+ - ' windows/amd64'
43
+ - ' windows/386'
44
+ - ' windows/arm64'
45
+ - ' linux/amd64'
46
+ - ' linux/386'
47
+ - ' linux/arm64'
48
+ - ' linux/arm'
49
+ - ' darwin/amd64'
50
+ - ' darwin/arm64'
51
+ - ' freebsd/386'
52
+ - ' freebsd/amd64'
53
+ - ' freebsd/arm'
54
+ - ' openbsd/amd64'
55
+ - ' openbsd/arm64'
43
56
steps :
44
57
- name : Checkout code
45
58
uses : actions/checkout@v3
@@ -49,10 +62,16 @@ jobs:
49
62
with :
50
63
go-version : ' 1.20'
51
64
65
+ - name : Set up GOOS and GOARCH
66
+ id : setup_env
67
+ run : |
68
+ echo "goos=$(echo ${{ matrix.target }} | cut -d'/' -f1)" >> $GITHUB_OUTPUT
69
+ echo "goarch=$(echo ${{ matrix.target }} | cut -d'/' -f2)" >> $GITHUB_OUTPUT
70
+
52
71
- name : Build
53
72
env :
54
- GOOS : ${{ matrix .goos }}
55
- GOARCH : ${{ matrix .goarch }}
73
+ GOOS : ${{ steps.setup_env.outputs .goos }}
74
+ GOARCH : ${{ steps.setup_env.outputs .goarch }}
56
75
run : |
57
76
set -euo pipefail
58
77
69
88
- name : Upload Artifacts
70
89
uses : actions/upload-artifact@v3
71
90
with :
72
- name : vegeta_${{ matrix. goos }}_${{ matrix .goarch }}
91
+ name : vegeta_${{ steps.setup_env.outputs. goos }}_${{ steps.setup_env.outputs .goarch }}
73
92
path : |
74
93
*.zip
75
94
*.tar.gz
@@ -116,7 +135,7 @@ jobs:
116
135
PREV_VERSION=$(git describe --tags --abbrev=0 $CURRENT_VERSION^)
117
136
RELEASE_NOTES=${{ github.workspace }}/release-notes.txt
118
137
119
- echo "## Changelog\n" > $RELEASE_NOTES
138
+ printf "## Changelog\n \n" > $RELEASE_NOTES
120
139
git log ${PREV_VERSION}..${CURRENT_VERSION} --oneline --abbrev-commit >> $RELEASE_NOTES
121
140
cat $RELEASE_NOTES
122
141
You can’t perform that action at this time.
0 commit comments