File tree 3 files changed +89
-0
lines changed
3 files changed +89
-0
lines changed Original file line number Diff line number Diff line change
1
+ changelog :
2
+ categories :
3
+ - title : 💪 Features
4
+ labels :
5
+ - ' *'
6
+ exclude :
7
+ labels :
8
+ - dependencies
9
+ - title : 👊 Dependencies
10
+ labels :
11
+ - dependencies
Original file line number Diff line number Diff line change
1
+ name : build
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+
8
+ jobs :
9
+ build :
10
+ runs-on : ubuntu-latest
11
+ strategy :
12
+ matrix :
13
+ goos : [linux, darwin]
14
+ goarch : [amd64, arm64]
15
+ steps :
16
+ - name : Install dependencies
17
+ run : |
18
+ sudo apt-get update
19
+ sudo apt install -y libpcap-dev
20
+
21
+ - uses : actions/checkout@v4
22
+
23
+ - name : Set up Go
24
+ uses : actions/setup-go@v4
25
+ with :
26
+ go-version : ' 1.24.2'
27
+
28
+ - name : Test
29
+ run : go test -v ./...
30
+
31
+ - name : Build
32
+ env :
33
+ goos : ${{ matrix.goos }}
34
+ goarch : ${{ matrix.arch }}
35
+ run : |
36
+ GOOS=${{ matrix.goos }} GOARCH=${{ matrix.goarch }} go build -ldflags="-s -w" -trimpath -o boop-${{ matrix.goos }}.${{ matrix.goarch }} ./...
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
+ runs-on : ubuntu-latest
11
+ strategy :
12
+ matrix :
13
+ goos : [linux, darwin]
14
+ goarch : [amd64, arm64]
15
+ steps :
16
+ - uses : actions/checkout@v4
17
+
18
+ - name : Set up Go
19
+ uses : actions/setup-go@v4
20
+ with :
21
+ go-version : ' 1.24.2'
22
+
23
+ - name : Install dependencies
24
+ run : go get -v -t -d ./...
25
+
26
+ - name : Test
27
+ run : go test -v ./...
28
+
29
+ - name : Build
30
+ env :
31
+ goos : ${{ matrix.goos }}
32
+ goarch : ${{ matrix.arch }}
33
+ run : |
34
+ GOOS=$goos GOARCH=$goarch go build -v -ldflags="-s -w" -trimpath -o boop-${goos}.${goarch} ./...
35
+
36
+ - name : Release
37
+ uses : softprops/action-gh-release@v2
38
+ if : github.ref_type == 'tag'
39
+ with :
40
+ files : |
41
+ Release.txt
42
+ LICENSE
You can’t perform that action at this time.
0 commit comments