Skip to content

Commit 933b02f

Browse files
committed
[Java] Add Clang build
1 parent 22d9a89 commit 933b02f

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,3 +101,33 @@ jobs:
101101
sudo apt-get install -y g++-${{ matrix.version }}
102102
- name: Build
103103
run: ./cppbuild/cppbuild
104+
105+
clang-build:
106+
name: C++ Clang ${{ matrix.version }}
107+
runs-on: ubuntu-latest
108+
strategy:
109+
matrix:
110+
version: [ 6, 7, 8, 9 ]
111+
env:
112+
CC: clang-${{ matrix.version }}
113+
CXX: clang++-${{ matrix.version }}
114+
steps:
115+
- name: Checkout code
116+
uses: actions/checkout@v2
117+
- name: Cache Gradle dependencies
118+
uses: actions/cache@v1
119+
with:
120+
path: ~/.gradle/caches
121+
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
122+
restore-keys: |
123+
${{ runner.os }}-gradle-
124+
- name: Cache Gradle wrappers
125+
uses: actions/cache@v1
126+
with:
127+
path: ~/.gradle/wrapper
128+
key: ${{ runner.os }}-gradle-wrapper
129+
- name: Install compiler
130+
run: |
131+
sudo apt-get install -y clang-${{ matrix.version }}
132+
- name: Build
133+
run: ./cppbuild/cppbuild

0 commit comments

Comments
 (0)