-
Notifications
You must be signed in to change notification settings - Fork 0
61 lines (48 loc) · 1.9 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Nightly Build
on:
push:
branches:
- master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.21.4
- name: Build binaries (Windows amd64)
run: GOOS=windows GOARCH=amd64 go build -o server/cmd/bugbuddy-windows-amd64.exe ./server
- name: Build binaries (Windows arm64)
run: GOOS=windows GOARCH=arm64 go build -o server/cmd/bugbuddy-windows-arm64.exe ./server
- name: Build binaries (Linux amd64)
run: GOOS=linux GOARCH=amd64 go build -o server/cmd/bugbuddy-linux-amd64 ./server
- name: Build binaries (Linux arm64)
run: GOOS=linux GOARCH=arm64 go build -o server/cmd/bugbuddy-linux-arm64 ./server
- name: Build binaries (macOS amd64)
run: GOOS=darwin GOARCH=amd64 go build -o server/cmd/bugbuddy-macos-amd64 ./server
- name: Build binaries (macOS arm64)
run: GOOS=darwin GOARCH=arm64 go build -o server/cmd/bugbuddy-macos-arm64 ./server
release:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Create Release
uses: softprops/action-gh-release@v1
with:
tag_name: nightly
name: Nightly Build
body: Nightly build release
draft: false
prerelease: true
files: |
server/cmd/bugbuddy-windows-amd64.exe # Include Windows amd64 binary
server/cmd/bugbuddy-windows-arm64.exe # Include Windows arm64 binary
server/cmd/bugbuddy-linux-amd64 # Include Linux amd64 binary
server/cmd/bugbuddy-linux-arm64 # Include Linux arm64 binary
server/cmd/bugbuddy-macos-amd64 # Include macOS amd64 binary
server/cmd/bugbuddy-macos-arm64 # Include macOS arm64 binary