-
Notifications
You must be signed in to change notification settings - Fork 80
58 lines (45 loc) · 1.27 KB
/
ci.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
name: Java CI with Maven
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
JAVA_TOOL_OPTIONS: -Xmx3g
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Print available memory
run: free -m
- name: Set time zone
run: sudo ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'temurin'
cache: maven
- name: Setup Protoc
uses: arduino/setup-protoc@v2
with:
version: "21.7"
- name: Setup Rust
run: |
rustup toolchain install nightly-2023-08-15
rustup component add rustfmt --toolchain nightly-2023-08-15
rustup component add clippy --toolchain nightly-2023-08-15
- name: Build CStore
run: |
cd geaflow-cstore
touch ~/.cstore_buildrc && make features mod=0 && source ~/.cstore_buildrc
cd java && ./build.sh
env:
OSTYPE: Linux
- name: CStore Test
run: |
cd geaflow-cstore
make all
- name: Build and Test
run: mvn -B -e clean test -Duser.timezone=Asia/Shanghai