File tree Expand file tree Collapse file tree 1 file changed +34
-17
lines changed Expand file tree Collapse file tree 1 file changed +34
-17
lines changed Original file line number Diff line number Diff line change 14
14
jobs :
15
15
musl :
16
16
runs-on : ubuntu-latest
17
+ strategy :
18
+ matrix :
19
+ include :
20
+ - arch : x86
21
+ goarch : 386
22
+ - arch : aarch64
23
+ goarch : arm64
24
+ - arch : amd64
25
+ goarch : amd64
26
+ - arch : armv7
27
+ goarch : arm
28
+ - arch : ppc64le
29
+ goarch : ppc64le
30
+ - arch : s390x
31
+ goarch : s390x
32
+ - arch : riscv64
33
+ goarch : riscv64
17
34
steps :
18
35
- uses : actions/checkout@v2
19
-
20
36
- name : Setup latest Alpine Linux
21
37
uses : jirutka/setup-alpine@v1
22
-
23
- - name : Run script inside Alpine chroot as root
24
- run : |
25
- cat /etc/alpine-release
26
- apk add linux-headers
27
- apk add python3-dev
28
- apk add go
29
- apk add python3
30
- apk add uv
31
- apk add musl
32
- apk add musl-dev
33
- apk add musl-utils
34
- apk add git
35
- apk add gcc
36
- shell : alpine.sh --root {0}
38
+ with :
39
+ alpine-version : ' latest '
40
+ arch : ${{ matrix.arch }}
41
+ chroot : true
42
+ packages : |
43
+ linux-headers
44
+ python3-dev
45
+ go
46
+ python3
47
+ uv
48
+ musl
49
+ musl-dev
50
+ musl-utils
51
+ git
52
+ gcc
37
53
38
54
- name : Run script inside Alpine chroot as the default user (unprivileged)
39
55
run : |
40
56
export CGO_ENABLED=1
57
+ export GOARCH=${{ matrix.goarch }}
41
58
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
42
59
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
43
60
ls -la # as you would expect, you're in your workspace directory
48
65
uv build
49
66
uv run task repack
50
67
export UV_PUBLISH_TOKEN=${UV_PUBLISH_TOKEN}
51
- uv publish
68
+ # uv publish
52
69
shell : alpine.sh {0}
53
70
- name : Run script on the host system (Ubuntu)
54
71
run : |
You can’t perform that action at this time.
0 commit comments