-
Notifications
You must be signed in to change notification settings - Fork 1
41 lines (33 loc) · 1021 Bytes
/
Copy pathci.yml
File metadata and controls
41 lines (33 loc) · 1021 Bytes
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
41
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Azul Zulu JDK 25
uses: actions/setup-java@v4
with:
distribution: zulu
java-version: '25'
- name: Cache Maven repository
uses: actions/cache@v4
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Install protobuf compiler
run: sudo apt-get install -y protobuf-compiler
- name: Install flatc 25.12.19
run: |
curl -fsSL -o flatc.zip https://github.com/google/flatbuffers/releases/download/v25.12.19/Linux.flatc.binary.g++-13.zip
unzip -j flatc.zip flatc
sudo install -m 755 flatc /usr/local/bin/flatc
flatc --version
- name: Build and test
run: ./mvnw verify