|
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
|
|
43 | 51 | with:
|
44 | 52 | submodules: recursive
|
45 | 53 |
|
| 54 | + # Alpine container from MS does not have build tools installed by default |
| 55 | + - name: Install build tools (Alpine) |
| 56 | + if: ${{ matris.os == 'alpine-latest' }} |
| 57 | + run: apk add --no-cache build-base |
| 58 | + |
46 | 59 | - name: Install Rust
|
47 | 60 | if: ${{ !matrix.container }}
|
48 | 61 | uses: dtolnay/rust-toolchain@stable
|
@@ -129,10 +142,12 @@ jobs:
|
129 | 142 | strategy:
|
130 | 143 | fail-fast: false
|
131 | 144 | matrix:
|
132 |
| - os: [ubuntu-latest, ubuntu-arm, macos-intel, macos-arm, windows-latest] |
| 145 | + os: [ubuntu-latest, ubuntu-arm, alpine-latest, macos-intel, macos-arm, windows-latest] |
133 | 146 | include:
|
134 | 147 | - os: ubuntu-arm
|
135 | 148 | runsOn: buildjet-4vcpu-ubuntu-2204-arm
|
| 149 | + - os: alpine-latest |
| 150 | + container: mcr.microsoft.com/dotnet/sdk:8.0-alpine |
136 | 151 | - os: macos-intel
|
137 | 152 | runsOn: macos-13
|
138 | 153 | - os: macos-arm
|
|
0 commit comments