Skip to content

Commit 3e56285

Browse files
committed
checksums, go version, tagging, 386
1 parent 677e017 commit 3e56285

File tree

2 files changed

+30
-16
lines changed

2 files changed

+30
-16
lines changed

.github/workflows/taco-release.yml

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,10 @@ jobs:
2424
arch: arm64
2525
goos: linux
2626
goarch: arm64
27+
- os: linux
28+
arch: 386
29+
goos: linux
30+
goarch: 386
2731
- os: darwin
2832
arch: amd64
2933
goos: darwin
@@ -36,6 +40,10 @@ jobs:
3640
arch: amd64
3741
goos: windows
3842
goarch: amd64
43+
- os: windows
44+
arch: 386
45+
goos: windows
46+
goarch: 386
3947
steps:
4048
- uses: actions/checkout@v4
4149
with:
@@ -61,6 +69,7 @@ jobs:
6169
CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \
6270
-ldflags="-X 'main.Version=${{ steps.meta.outputs.version }}' -X 'main.Commit=${{ github.sha }}' -s -w" \
6371
-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
6473
6574
- name: Build Statesman
6675
if: startsWith(steps.meta.outputs.app_dir, 'taco/cmd/statesman')
@@ -69,20 +78,21 @@ jobs:
6978
CGO_ENABLED=0 GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build \
7079
-ldflags="-X 'main.Version=${{ steps.meta.outputs.version }}' -X 'main.Commit=${{ github.sha }}' -s -w" \
7180
-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
7282
7383
- name: Upload CLI artifacts
7484
if: startsWith(steps.meta.outputs.app_dir, 'taco/cmd/taco')
7585
uses: actions/upload-artifact@v4
7686
with:
7787
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' || '' }}*
7989

8090
- name: Upload Statesman artifacts
8191
if: startsWith(steps.meta.outputs.app_dir, 'taco/cmd/statesman')
8292
uses: actions/upload-artifact@v4
8393
with:
8494
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' || '' }}*
8696

8797
build-docker:
8898
if: startsWith(github.ref_name, 'taco/cmd/statesman/')
@@ -122,7 +132,7 @@ jobs:
122132
type=ref,event=tag
123133
type=semver,pattern={{version}}
124134
type=semver,pattern={{major}}.{{minor}}
125-
type=raw,value=latest,enable={{is_default_branch}}
135+
type=raw,value=latest
126136
127137
- name: Build and push Docker image
128138
uses: docker/build-push-action@v5
@@ -166,11 +176,13 @@ jobs:
166176
## Taco CLI ${{ steps.meta.outputs.version }}
167177
168178
### 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))
174186
175187
### Installation
176188
Download the appropriate binary for your platform and make it executable:
@@ -179,7 +191,7 @@ jobs:
179191
sudo mv taco-<platform>-<arch> /usr/local/bin/taco
180192
```
181193
files: |
182-
taco-cli-*/taco-*
194+
taco-cli-*/*
183195
draft: false
184196
prerelease: false
185197

@@ -193,11 +205,13 @@ jobs:
193205
## Taco Statesman ${{ steps.meta.outputs.version }}
194206
195207
### 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))
201215
202216
### Docker
203217
```bash
@@ -211,6 +225,6 @@ jobs:
211225
sudo mv statesman-<platform>-<arch> /usr/local/bin/statesman
212226
```
213227
files: |
214-
taco-statesman-*/statesman-*
228+
taco-statesman-*/*
215229
draft: false
216230
prerelease: false

taco/Dockerfile_statesman

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM golang:1.25 as builder
1+
FROM golang:1.24 as builder
22
ARG COMMIT_SHA
33
RUN echo "commit sha: ${COMMIT_SHA}"
44

0 commit comments

Comments
 (0)