24
24
arch : arm64
25
25
goos : linux
26
26
goarch : arm64
27
+ - os : linux
28
+ arch : 386
29
+ goos : linux
30
+ goarch : 386
27
31
- os : darwin
28
32
arch : amd64
29
33
goos : darwin
36
40
arch : amd64
37
41
goos : windows
38
42
goarch : amd64
43
+ - os : windows
44
+ arch : 386
45
+ goos : windows
46
+ goarch : 386
39
47
steps :
40
48
- uses : actions/checkout@v4
41
49
with :
61
69
CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \
62
70
-ldflags="-X 'main.Version=${{ steps.meta.outputs.version }}' -X 'main.Commit=${{ github.sha }}' -s -w" \
63
71
-o taco-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }} .
72
+ sha256sum taco-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }} > taco-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}.sha256
64
73
65
74
- name : Build Statesman
66
75
if : startsWith(steps.meta.outputs.app_dir, 'taco/cmd/statesman')
@@ -69,20 +78,21 @@ jobs:
69
78
CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \
70
79
-ldflags="-X 'main.Version=${{ steps.meta.outputs.version }}' -X 'main.Commit=${{ github.sha }}' -s -w" \
71
80
-o statesman-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }} .
81
+ sha256sum statesman-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }} > statesman-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}.sha256
72
82
73
83
- name : Upload CLI artifacts
74
84
if : startsWith(steps.meta.outputs.app_dir, 'taco/cmd/taco')
75
85
uses : actions/upload-artifact@v4
76
86
with :
77
87
name : taco-cli-${{ matrix.os }}-${{ matrix.arch }}
78
- path : taco/cmd/taco/taco-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}
88
+ path : taco/cmd/taco/taco-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}*
79
89
80
90
- name : Upload Statesman artifacts
81
91
if : startsWith(steps.meta.outputs.app_dir, 'taco/cmd/statesman')
82
92
uses : actions/upload-artifact@v4
83
93
with :
84
94
name : taco-statesman-${{ matrix.os }}-${{ matrix.arch }}
85
- path : taco/cmd/statesman/statesman-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}
95
+ path : taco/cmd/statesman/statesman-${{ matrix.os }}-${{ matrix.arch }}${{ matrix.goos == 'windows' && '.exe' || '' }}*
86
96
87
97
build-docker :
88
98
if : startsWith(github.ref_name, 'taco/cmd/statesman/')
@@ -122,7 +132,7 @@ jobs:
122
132
type=ref,event=tag
123
133
type=semver,pattern={{version}}
124
134
type=semver,pattern={{major}}.{{minor}}
125
- type=raw,value=latest,enable={{is_default_branch}}
135
+ type=raw,value=latest
126
136
127
137
- name : Build and push Docker image
128
138
uses : docker/build-push-action@v5
@@ -166,11 +176,13 @@ jobs:
166
176
## Taco CLI ${{ steps.meta.outputs.version }}
167
177
168
178
### Downloads
169
- - **Linux AMD64**: [taco-linux-amd64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-linux-amd64)
170
- - **Linux ARM64**: [taco-linux-arm64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-linux-arm64)
171
- - **macOS AMD64**: [taco-darwin-amd64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-darwin-amd64)
172
- - **macOS ARM64**: [taco-darwin-arm64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-darwin-arm64)
173
- - **Windows AMD64**: [taco-windows-amd64.exe](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-windows-amd64.exe)
179
+ - **Linux AMD64**: [taco-linux-amd64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-linux-amd64) ([checksum](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-linux-amd64.sha256))
180
+ - **Linux ARM64**: [taco-linux-arm64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-linux-arm64) ([checksum](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-linux-arm64.sha256))
181
+ - **Linux 386**: [taco-linux-386](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-linux-386) ([checksum](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-linux-386.sha256))
182
+ - **macOS AMD64**: [taco-darwin-amd64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-darwin-amd64) ([checksum](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-darwin-amd64.sha256))
183
+ - **macOS ARM64**: [taco-darwin-arm64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-darwin-arm64) ([checksum](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-darwin-arm64.sha256))
184
+ - **Windows AMD64**: [taco-windows-amd64.exe](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-windows-amd64.exe) ([checksum](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-windows-amd64.exe.sha256))
185
+ - **Windows 386**: [taco-windows-386.exe](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-windows-386.exe) ([checksum](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/taco-windows-386.exe.sha256))
174
186
175
187
### Installation
176
188
Download the appropriate binary for your platform and make it executable:
@@ -179,7 +191,7 @@ jobs:
179
191
sudo mv taco-<platform>-<arch> /usr/local/bin/taco
180
192
```
181
193
files : |
182
- taco-cli-*/taco- *
194
+ taco-cli-*/*
183
195
draft : false
184
196
prerelease : false
185
197
@@ -193,11 +205,13 @@ jobs:
193
205
## Taco Statesman ${{ steps.meta.outputs.version }}
194
206
195
207
### Downloads
196
- - **Linux AMD64**: [statesman-linux-amd64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-linux-amd64)
197
- - **Linux ARM64**: [statesman-linux-arm64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-linux-arm64)
198
- - **macOS AMD64**: [statesman-darwin-amd64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-darwin-amd64)
199
- - **macOS ARM64**: [statesman-darwin-arm64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-darwin-arm64)
200
- - **Windows AMD64**: [statesman-windows-amd64.exe](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-windows-amd64.exe)
208
+ - **Linux AMD64**: [statesman-linux-amd64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-linux-amd64) ([checksum](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-linux-amd64.sha256))
209
+ - **Linux ARM64**: [statesman-linux-arm64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-linux-arm64) ([checksum](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-linux-arm64.sha256))
210
+ - **Linux 386**: [statesman-linux-386](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-linux-386) ([checksum](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-linux-386.sha256))
211
+ - **macOS AMD64**: [statesman-darwin-amd64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-darwin-amd64) ([checksum](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-darwin-amd64.sha256))
212
+ - **macOS ARM64**: [statesman-darwin-arm64](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-darwin-arm64) ([checksum](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-darwin-arm64.sha256))
213
+ - **Windows AMD64**: [statesman-windows-amd64.exe](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-windows-amd64.exe) ([checksum](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-windows-amd64.exe.sha256))
214
+ - **Windows 386**: [statesman-windows-386.exe](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-windows-386.exe) ([checksum](https://github.com/${{ github.repository }}/releases/download/${{ github.ref_name }}/statesman-windows-386.exe.sha256))
201
215
202
216
### Docker
203
217
```bash
@@ -211,6 +225,6 @@ jobs:
211
225
sudo mv statesman-<platform>-<arch> /usr/local/bin/statesman
212
226
```
213
227
files : |
214
- taco-statesman-*/statesman- *
228
+ taco-statesman-*/*
215
229
draft : false
216
230
prerelease : false
0 commit comments