Skip to content

Commit 2985902

Browse files
committed
[Java] Add macOS build
1 parent 61f0465 commit 2985902

File tree

1 file changed

+34
-4
lines changed

1 file changed

+34
-4
lines changed

.github/workflows/ci.yml

Lines changed: 34 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
runs-on: ubuntu-latest
88
strategy:
99
matrix:
10-
java: [ 8, 11 ]
10+
java: [ '8', '11' ]
1111
steps:
1212
- name: Checkout code
1313
uses: actions/checkout@v2
@@ -72,12 +72,12 @@ jobs:
7272
- name: Pack
7373
run: ./csharp/pack.sh
7474

75-
gcc-build:
75+
cpp-gcc-build:
7676
name: C++ GCC ${{ matrix.version }}
7777
runs-on: ubuntu-latest
7878
strategy:
7979
matrix:
80-
version: [ 6, 7, 8, 9 ]
80+
version: [ '6', '7', '8', '9' ]
8181
env:
8282
CC: gcc-${{ matrix.version }}
8383
CXX: g++-${{ matrix.version }}
@@ -102,7 +102,7 @@ jobs:
102102
- name: Build
103103
run: ./cppbuild/cppbuild
104104

105-
clang-build:
105+
cpp-clang-build:
106106
name: C++ Clang ${{ matrix.version }}
107107
runs-on: ubuntu-latest
108108
strategy:
@@ -135,3 +135,33 @@ jobs:
135135
sudo apt-get install -y clang-${{ matrix.version }} libsparsehash-dev
136136
- name: Build
137137
run: ./cppbuild/cppbuild
138+
139+
cpp-clang-macos-build:
140+
name: C++ Clang ${{ matrix.version }} (macOS)
141+
runs-on: macOS-latest
142+
strategy:
143+
matrix:
144+
version: [ '11.1' ]
145+
env:
146+
CC: clang
147+
CXX: clang++
148+
steps:
149+
- name: Checkout code
150+
uses: actions/checkout@v2
151+
- name: Cache Gradle dependencies
152+
uses: actions/cache@v1
153+
with:
154+
path: ~/.gradle/caches
155+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
156+
restore-keys: |
157+
${{ runner.os }}-gradle-
158+
- name: Cache Gradle wrappers
159+
uses: actions/cache@v1
160+
with:
161+
path: ~/.gradle/wrapper
162+
key: ${{ runner.os }}-gradle-wrapper
163+
- name: Install compiler
164+
run: |
165+
sudo xcode-select -switch /Applications/Xcode_${{ matrix.version }}.app
166+
- name: Build
167+
run: ./cppbuild/cppbuild

0 commit comments

Comments
 (0)