Skip to content

Commit 7006efb

Browse files
committed
Add github actions CI
build and test
1 parent ed8f4a8 commit 7006efb

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/build.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [ "master" ]
6+
7+
jobs:
8+
build:
9+
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
- name: Set up JDK 17
15+
uses: actions/setup-java@v3
16+
with:
17+
java-version: '17'
18+
distribution: 'temurin'
19+
- name: Install Bazel
20+
run: |
21+
sudo apt install apt-transport-https curl gnupg -y
22+
curl -fsSL https://bazel.build/bazel-release.pub.gpg | gpg --dearmor >bazel-archive-keyring.gpg
23+
sudo mv bazel-archive-keyring.gpg /usr/share/keyrings
24+
echo "deb [arch=amd64 signed-by=/usr/share/keyrings/bazel-archive-keyring.gpg] https://storage.googleapis.com/bazel-apt stable jdk1.8" | sudo tee /etc/apt/sources.list.d/bazel.list
25+
sudo apt update
26+
sudo apt install bazel -y
27+
- name: Build
28+
run: |
29+
chmod +X build.sh
30+
./build.sh
31+
- name: Test
32+
run: bazel test :all

0 commit comments

Comments
 (0)