-
Notifications
You must be signed in to change notification settings - Fork 319
40 lines (37 loc) · 1.49 KB
/
test-namespace-darwin.yaml
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
# Darwin tests on runners from https://namespace.so
name: test-namespace
on:
push:
branches:
- master
- 'dev-gh-*' # used by developers to trigger CI runs without having to open a PR
pull_request:
merge_group:
# Ensure there's only one instance of this workflow for any PR/branch/tag, and
# cancel the previous one if necessary; except on master where we want to build
# every commit
concurrency:
# never scheduled so head_ref or ref will always be set (no run_id fallback)
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
cancel-in-progress: ${{ github.ref_name != 'master' }}
jobs:
bazel-test-macos-apple-silicon:
name: Bazel Test macOS Apple Silicon
timeout-minutes: 120
runs-on: namespace-profile-darwin # profile created in namespace console
steps:
- name: Set up Bazel cache
run: |
# Creates a bazelrc configuration fragment which tells bazel where the cache lives.
nsc bazel cache setup --bazelrc=/tmp/bazel-cache.bazelrc
- uses: actions/checkout@v4
# Build and test, excluding 'upload' jobs that are not required on macOS (used in reproducibility tests)
- name: Test
run: |
bazel \
--noworkspace_rc \
--bazelrc=./bazel/conf/.bazelrc.build --bazelrc=/tmp/bazel-cache.bazelrc \
test \
--config=ci --config=macos_ci \
--test_tag_filters="test_macos,test_macos_slow,-upload" \
//rs/... //publish/binaries/...