File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+
3+ on :
4+ push :
5+ tags :
6+ - ' v*'
7+
8+ jobs :
9+ release :
10+ name : Release
11+ runs-on : ubuntu-latest
12+ permissions :
13+ contents : write
14+ steps :
15+ - uses : actions/checkout@v4
16+
17+ - name : Set up Go
18+ uses : actions/setup-go@v5
19+ with :
20+ go-version : ' 1.21'
21+
22+ - name : Build binaries
23+ run : |
24+ VERSION=${GITHUB_REF#refs/tags/}
25+
26+ for GOOS in linux darwin; do
27+ for GOARCH in amd64 arm64; do
28+ echo "Building $GOOS/$GOARCH..."
29+
30+ # Server
31+ GOOS=$GOOS GOARCH=$GOARCH go build \
32+ -ldflags "-X main.Version=$VERSION" \
33+ -o "droidrun-server-$GOOS-$GOARCH" \
34+ ./server
35+
36+ # Client
37+ GOOS=$GOOS GOARCH=$GOARCH go build \
38+ -ldflags "-X main.Version=$VERSION" \
39+ -o "droidrun-client-$GOOS-$GOARCH" \
40+ ./client
41+ done
42+ done
43+
44+ - name : Create Release
45+ uses : softprops/action-gh-release@v1
46+ with :
47+ generate_release_notes : true
48+ files : |
49+ droidrun-server-*
50+ droidrun-client-*
You can’t perform that action at this time.
0 commit comments