File tree Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Expand file tree Collapse file tree 2 files changed +17
-4
lines changed Original file line number Diff line number Diff line change 8
8
9
9
jobs :
10
10
build :
11
- runs-on : ubuntu-18.04
11
+ strategy :
12
+ matrix :
13
+ os : [ubuntu-18.04, macos-10.15]
14
+
15
+ runs-on : ${{ matrix.os }}
16
+
17
+ env :
18
+ BAZEL_USE_CPP_ONLY_TOOLCHAIN : 1
12
19
13
20
steps :
14
21
- uses : actions/checkout@v2
17
24
uses : actions/cache@v1
18
25
with :
19
26
path : .cache
20
- key : bazel-${{ github.sha }}
27
+ key : bazel-${{ matrix.os }}-${{ github.sha }}
21
28
restore-keys : |
22
- bazel-
29
+ bazel-${{ matrix.os }}
23
30
24
31
- name : Configure Bazel
25
32
run : |
30
37
- name : Install bazelisk
31
38
run : |
32
39
mkdir -p "${GITHUB_WORKSPACE}/bin"
33
- curl -L "https://github.com/bazelbuild/bazelisk/releases/download/v1.4.0/bazelisk-linux-amd64" -o "${GITHUB_WORKSPACE}/bin/bazel"
40
+ if [[ ${{ matrix.os }} = macos* ]]; then
41
+ curl -L "https://github.com/bazelbuild/bazelisk/releases/download/v1.4.0/bazelisk-darwin-amd64" -o "${GITHUB_WORKSPACE}/bin/bazel"
42
+ else
43
+ curl -L "https://github.com/bazelbuild/bazelisk/releases/download/v1.4.0/bazelisk-linux-amd64" -o "${GITHUB_WORKSPACE}/bin/bazel"
44
+ fi
34
45
chmod +x "${GITHUB_WORKSPACE}/bin/bazel"
35
46
"${GITHUB_WORKSPACE}/bin/bazel" version
36
47
Original file line number Diff line number Diff line change @@ -41,6 +41,8 @@ cc_library(
41
41
srcs = glob(["*.c"]),
42
42
hdrs = glob(["*.h"]),
43
43
copts = ["-w"],
44
+ # Work around `ld -rpath` error on MacOS.
45
+ linkstatic = 1,
44
46
)
45
47
""" ,
46
48
sha256 = "c3e5e9fdd5004dcb542feda5ee4f0ff0744628baf8ed2dd5d66f8ca1197cb1a1" ,
You can’t perform that action at this time.
0 commit comments