-
Notifications
You must be signed in to change notification settings - Fork 209
44 lines (34 loc) · 1.05 KB
/
auto-check_cpp_files.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
name: Serialization Compatibility Test
on:
push:
branches: [ master, main ]
workflow_dispatch:
jobs:
build:
name: SerDe Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Checkout C++
uses: actions/checkout@v4
with:
repository: apache/datasketches-cpp
path: cpp
- name: Setup Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'temurin'
- name: Configure C++ build
run: cd cpp/build && cmake .. -DGENERATE=true
- name: Build C++ unit tests
run: cd cpp && cmake --build build --config Release
- name: Run C++ tests
run: cd cpp && cmake --build build --config Release --target test
- name: Make dir
run: mkdir -p serialization_test_data/cpp_generated_files
- name: Copy files
run: cp cpp/build/*/test/*_cpp.sk serialization_test_data/cpp_generated_files
- name: Run Java tests
run: mvn test -P check-cpp-files