Skip to content

Commit 6b153ed

Browse files
committed
Add release pipeline
1 parent ade8961 commit 6b153ed

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/release.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
on: [workflow_dispatch]
2+
3+
jobs:
4+
releases-matrix:
5+
name: Release Go Binary
6+
runs-on: ubuntu-latest
7+
strategy:
8+
matrix:
9+
goos: [linux, windows, darwin]
10+
goarch: ["386", amd64, arm64]
11+
exclude:
12+
- goarch: "386"
13+
goos: darwin
14+
- goarch: arm64
15+
goos: windows
16+
steps:
17+
- name: Checkout code
18+
uses: actions/checkout@v3
19+
20+
- name: Build and release
21+
uses: wangyoucao577/go-release-action@v1
22+
with:
23+
github_token: ${{ secrets.GITHUB_TOKEN }}
24+
goos: ${{ matrix.goos }}
25+
goarch: ${{ matrix.goarch }}
26+
goversion: "https://dl.google.com/go/go1.20.2.linux-amd64.tar.gz"
27+
project_path: "./src/npu"
28+
binary_name: "npu"
29+
extra_files: LICENSE README.md

0 commit comments

Comments
 (0)