Skip to content

Commit 0cc1f72

Browse files
committed
prebuilt rai binaries on release
1 parent 785591c commit 0cc1f72

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/release.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Release rai-cli binaries
2+
3+
on:
4+
release:
5+
types: [created]
6+
7+
jobs:
8+
releases-matrix:
9+
name: Release Go Binary
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
goos: [linux, darwin, windows]
14+
goarch: ["386", amd64]
15+
16+
steps:
17+
- uses: actions/checkout@v3
18+
- uses: wangyoucao577/go-release-action@v1.32
19+
with:
20+
github_token: ${{ secrets.GITHUB_TOKEN }}
21+
goos: ${{ matrix.goos }}
22+
goarch: ${{ matrix.goarch }}
23+
goversion: "https://dl.google.com/go/go1.18.1.linux-amd64.tar.gz"
24+
build_command: "go build -o build/rai rai/*"
25+
binary_name: "rai"

0 commit comments

Comments
 (0)