1
1
name : Build Package
2
2
on :
3
+ pull_request :
3
4
push :
4
5
branches :
5
6
- main
10
11
strategy :
11
12
fail-fast : false
12
13
matrix :
13
- os : [ubuntu-latest, ubuntu-arm, macos-intel, macos-arm, windows-latest]
14
+ os : [ubuntu-latest, ubuntu-arm, alpine-latest, macos-intel, macos-arm, windows-latest]
14
15
include :
15
16
- os : ubuntu-latest
16
17
out-file : libtemporal_sdk_bridge.so
25
26
# We use the Python manylinux image for glibc compatibility
26
27
container : quay.io/pypa/manylinux2014_aarch64
27
28
protobuf-url : https://github.com/protocolbuffers/protobuf/releases/download/v22.3/protoc-22.3-linux-aarch_64.zip
29
+ - os : alpine-latest
30
+ out-file : libtemporal_sdk_bridge.so
31
+ out-prefix : linux-musl-x64
32
+ # Need Alpine container since GH runner doesn't have one
33
+ container : mcr.microsoft.com/dotnet/sdk:8.0-alpine
34
+ protobuf-url : https://github.com/protocolbuffers/protobuf/releases/download/v22.3/protoc-22.3-linux-x86_64.zip
35
+ runsOn : ubuntu-latest
28
36
- os : macos-intel
29
37
out-file : libtemporal_sdk_bridge.dylib
30
38
out-prefix : osx-x64
@@ -37,12 +45,18 @@ jobs:
37
45
out-file : temporal_sdk_bridge.dll
38
46
out-prefix : win-x64
39
47
runs-on : ${{ matrix.runsOn || matrix.os }}
48
+ container : ${{ matrix.container }}
40
49
steps :
41
50
- name : Checkout repository
42
51
uses : actions/checkout@v4
43
52
with :
44
53
submodules : recursive
45
54
55
+ # Alpine container from MS does not have build tools installed by default
56
+ - name : Install build tools (Alpine)
57
+ if : ${{ matrix.os == 'alpine-latest' }}
58
+ run : apk add --no-cache build-base
59
+
46
60
- name : Install Rust
47
61
if : ${{ !matrix.container }}
48
62
uses : dtolnay/rust-toolchain@stable
@@ -129,10 +143,12 @@ jobs:
129
143
strategy :
130
144
fail-fast : false
131
145
matrix :
132
- os : [ubuntu-latest, ubuntu-arm, macos-intel, macos-arm, windows-latest]
146
+ os : [ubuntu-latest, ubuntu-arm, alpine-latest, macos-intel, macos-arm, windows-latest]
133
147
include :
134
148
- os : ubuntu-arm
135
149
runsOn : buildjet-4vcpu-ubuntu-2204-arm
150
+ - os : alpine-latest
151
+ container : mcr.microsoft.com/dotnet/sdk:8.0-alpine
136
152
- os : macos-intel
137
153
runsOn : macos-13
138
154
- os : macos-arm
0 commit comments