-
Notifications
You must be signed in to change notification settings - Fork 443
61 lines (58 loc) · 1.74 KB
/
macos-bazel.yml
File metadata and controls
61 lines (58 loc) · 1.74 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: macOS-Bazel-Builds
on:
workflow_call:
inputs:
checkout-ref:
required: true
description: "The ref we want to compile"
type: string
bazel-cache-mode:
required: true
description: "READ_WRITE or READ_ONLY"
type: string
execute-integration-tests:
required: true
description: "Integration tests require credentials."
type: boolean
permissions:
contents: read
jobs:
bazel:
name: bazel + ${{ matrix.os }} + ${{ matrix.shard }}
runs-on: ${{ matrix.os }}
permissions:
contents: 'read'
strategy:
# Continue other builds even if one fails
fail-fast: false
matrix:
os: [ macos-14 ]
shard:
- Storage
include:
- shard: Storage
targets:
- //google/cloud/storage/...
steps:
- uses: actions/checkout@v5
with:
ref: ${{ inputs.checkout-ref }}
- uses: google-github-actions/auth@v2
if: ${{ inputs.bazel-cache-mode == 'READ_WRITE' }}
with:
create_credentials_file: true
credentials_json: ${{ secrets.BUILD_CACHE_KEY }}
- name: Install bash >= 5.x
run: brew install bash
- name: Pre Tests Disk Space
run: df -m
- name: Build google-cloud-cpp
run: |
export BAZEL_REMOTE_CACHE_RW_MODE=${{ inputs.bazel-cache-mode }}
export EXECUTE_INTEGRATION_TESTS=${{ inputs.execute-integration-tests }}
ci/gha/builds/macos-bazel.sh ${{ join(matrix.targets, ' ') }}
- name: Post Tests Disk Space
run: df -m
env:
BAZEL_REMOTE_CACHE: https://storage.googleapis.com/cloud-cpp-community-gha-cache/bazel-cache/${{ matrix.os }}
GHA_TEST_BUCKET: "gcs-grpc-team-cloud-cpp-testing-bucket"