File tree Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Expand file tree Collapse file tree 1 file changed +18
-2
lines changed Original file line number Diff line number Diff line change @@ -202,9 +202,25 @@ jobs:
202202 matrix :
203203 # Pin ubuntu to ensure mono is installed
204204 # Pin macos to get the version of Xcode that we need: https://github.com/actions/runner-images/issues/10703
205- os : [ubuntu-22.04, windows-latest, macos-15]
205+ runner : [
206+ {os: ubuntu-22.04},
207+ {os: ubuntu-latest, container: alpine:edge, target: Linux-musl},
208+ {os: windows-latest},
209+ {os: macos-15}
210+ ]
206211
207212 steps :
213+ - name : Install build dependencies for Alpine Linux
214+ if : ${{ startsWith(matrix.runner.container, 'alpine') }}
215+ run : |
216+ apk update
217+ apk add bash build-base cmake curl-dev git icu mono openjdk11 powershell sudo tar wget
218+ git config --global --add safe.directory $GITHUB_WORKSPACE
219+ # Grpc.Tools protoc is prebuilt with glibc (https://github.com/grpc/grpc/issues/24188#issuecomment-1403435551)
220+ apk add grpc-plugins
221+ echo "PROTOBUF_PROTOC=/usr/bin/protoc" >> $GITHUB_ENV
222+ echo "GRPC_PROTOC_PLUGIN=/usr/bin/grpc_csharp_plugin" >> $GITHUB_ENV
223+
208224 - uses : actions/checkout@v4
209225 with :
210226 # We only check out what is absolutely necessary to reduce a chance of local files impacting
@@ -221,7 +237,7 @@ jobs:
221237 path : src
222238
223239 - name : Install build dependencies
224- if : runner.os == 'Linux'
240+ if : runner.os == 'Linux' && !matrix.runner.container
225241 run : |
226242 sudo apt update
227243 sudo apt install libcurl4-openssl-dev
You can’t perform that action at this time.
0 commit comments