File tree 3 files changed +63
-50
lines changed
3 files changed +63
-50
lines changed Original file line number Diff line number Diff line change 6
6
- " v?[0-9]+.[0-9]+.[0-9]+"
7
7
- " v?[0-9]+.[0-9]+.[0-9]+-dev.[0-9]+"
8
8
jobs :
9
- build :
10
- name : Build project
11
- runs-on : ubuntu-latest
12
-
13
- env :
14
- GO_VERSION : 1.23.4
15
- GOFLAGS : -mod=readonly
16
-
17
- steps :
18
- - name : Checkout code
19
- uses : actions/checkout@v4
20
-
21
- - name : Setup Go
22
- uses : actions/setup-go@v5
23
- with :
24
- go-version : ${{ env.GO_VERSION }}
25
-
26
- - name : Cache Go module dependencies
27
- id : cache-go-module-dependencies
28
- uses : actions/cache@v4
29
- with :
30
- path : ~/go/pkg/mod
31
- key : go-mod-cache-${{ runner.os }}-${{ env.GO_VERSION }}-${{ hashFiles('go.sum') }}
32
- restore-keys : |
33
- go-mod-cache-${{ runner.os }}-${{ env.GO_VERSION }}
34
- go-mod-cache-${{ runner.os }}
35
- go-mod-cache
36
-
37
- - name : Build
38
- run : |
39
- cd wfsm
40
- make build
41
-
42
- - name : Run tests
43
- run : |
44
- cd wfsm
45
- make test
46
-
47
9
release-dev :
48
10
name : Dev release
49
11
runs-on : ubuntu-latest
50
- needs : build
12
+ permissions : write-all
13
+ container :
14
+ image : goreleaser/goreleaser-cross:v1.24.0
51
15
52
16
env :
53
17
GO_VERSION : 1.23.4
54
18
GOFLAGS : -mod=readonly
55
19
GO111MODULE : " on"
20
+ CGO_ENABLED : 1
56
21
57
22
steps :
58
23
- name : Checkout code
@@ -63,15 +28,11 @@ jobs:
63
28
with :
64
29
go-version : ${{ env.GO_VERSION }}
65
30
66
- - name : Update package registry
67
- run : sudo apt update --yes
68
-
69
- - name : Install RPM
70
- run : sudo apt install rpm --yes
71
31
72
32
- name : Release
73
33
env :
74
34
GITHUB_TOKEN : ${{ github.token }}
75
35
run : |
76
36
cd wfsm
37
+ git config --global --add safe.directory '*'
77
38
make release-dev
Original file line number Diff line number Diff line change 82
82
"ref" : {
83
83
"name" : " email_reviewer" ,
84
84
"version" : " 1.0.0" ,
85
- "url" : " /Users/smagyari/dev/genai/demo/ llama_manifest.json"
85
+ "url" : " llama_manifest.json"
86
86
},
87
87
"deployment_option" : " src" ,
88
88
"env_var_values" : {
Original file line number Diff line number Diff line change 1
1
builds :
2
- - main : ./cmd/main.go
2
+ - id : darwin-amd64
3
+ main : ./cmd/main.go
3
4
binary : wfsm
5
+ goos :
6
+ - darwin
7
+ goarch :
8
+ - amd64
4
9
env :
5
10
- CGO_ENABLED=1
6
- ldflags : " -s -w {{ .Env.GORELEASER_LDFLAGS }}"
11
+ - PKG_CONFIG_SYSROOT_DIR=/sysroot/macos/amd64
12
+ - PKG_CONFIG_PATH=/sysroot/macos/amd64/usr/local/lib/pkgconfig
13
+ - CC=o64-clang
14
+ - CXX=o64-clang++
15
+
16
+ flags :
17
+ - -mod=readonly
18
+ ldflags :
19
+ - " -s -w {{ .Env.GORELEASER_LDFLAGS }}"
20
+
21
+ - id : darwin-arm64
22
+ main : ./cmd/main.go
23
+ binary : wfsm
7
24
goos :
8
- - linux
9
25
- darwin
10
26
goarch :
11
- - amd64
12
27
- arm64
28
+ env :
29
+ - CGO_ENABLED=1
30
+ - PKG_CONFIG_SYSROOT_DIR=/sysroot/macos/arm64
31
+ - PKG_CONFIG_PATH=/sysroot/macos/arm64/usr/local/lib/pkgconfig
32
+ - CC=o64-clang
33
+ - CXX=o64-clang++
34
+
35
+ flags :
36
+ - -mod=readonly
37
+ ldflags :
38
+ - " -s -w {{ .Env.GORELEASER_LDFLAGS }}"
39
+
40
+ - id : linux-armhf
41
+ main : ./cmd/main.go
42
+ binary : wfsm
43
+ goos :
44
+ - linux
45
+ goarch :
46
+ - arm
47
+ goarm :
48
+ - 7
49
+ env :
50
+ - CGO_ENABLED=1
51
+ - CC=arm-linux-gnueabihf-gcc
52
+ - CXX=arm-linux-gnueabihf-g++
53
+ - CGO_CFLAGS=--sysroot=/sysroot/linux/armhf
54
+ - CGO_LDFLAGS=--sysroot=/sysroot/linux/armhf
55
+ - PKG_CONFIG_SYSROOT_DIR=/sysroot/linux/armhf
56
+ - PKG_CONFIG_PATH=/sysroot/linux/armhf/opt/vc/lib/pkgconfig:/sysroot/linux/armhf/usr/lib/arm-linux-gnueabihf/pkgconfig:/sysroot/linux/armhf/usr/lib/pkgconfig:/sysroot/linux/armhf/usr/local/lib/pkgconfig
57
+ flags :
58
+ - -mod=readonly
59
+ ldflags :
60
+ - " -s -w {{ .Env.GORELEASER_LDFLAGS }}"
13
61
14
62
archives :
15
63
- name_template : " wfsm{{ .Version }}_{{ .Os }}_{{ .Arch }}"
64
+ builds :
65
+ - darwin-amd64
66
+ - darwin-arm64
67
+ - linux-armhf
16
68
17
69
checksum :
18
- name_template : " acpilot_checksums .txt"
70
+ name_template : " wfsm_checksums .txt"
19
71
20
72
changelog :
21
73
skip : true
You can’t perform that action at this time.
0 commit comments