-
Notifications
You must be signed in to change notification settings - Fork 12
73 lines (67 loc) · 2.33 KB
/
ci-checks-build.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Checks and Build
on: [push, pull_request]
permissions: # added using https://github.com/step-security/secure-repo
contents: read
jobs:
code-checks-scala:
name: Code Checks for Scala
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Set up JDK 1.8
uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1.4.4
with:
java-version: 1.8
- name: Check Scala code
run: |
cd ${{github.workspace}}/mllib-dal
${{github.workspace}}/dev/code-checks/lint-scala.sh
code-checks-java:
name: Code Checks for Java
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Set up JDK 1.8
uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1.4.4
with:
java-version: 1.8
- name: Check Java code
run: |
cd ${{github.workspace}}/mllib-dal
${{github.workspace}}/dev/code-checks/lint-java.sh
code-checks-cpp:
name: Code Checks for C++
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Install clang-format
run: |
sudo apt-get update
sudo apt-get install -y clang-format-10
- name: Check C++ code
run: |
cd ${{github.workspace}}/mllib-dal/src/main/native
${{github.workspace}}/dev/code-checks/lint-cpp.sh
code-build:
name: Build Checks
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
- name: Set up JDK 1.8
uses: actions/setup-java@b6e674f4b717d7b0ae3baee0fbe79f498905dfde # v1.4.4
with:
java-version: 1.8
- name: Restore cached dependencies
uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
with:
path: |
#/var/cache/apt/archives/*.deb
~/.m2/repository
/opt/intel/oneapi
~/opt
key: ${{ runner.os }}_spark-3.3.3_hadoop-3.2.0_oneapi-2023.0.0
restore-keys: |
${{ runner.os }}-
- name: Build Test for CPU and GPU
run: |
${{github.workspace}}/dev/ci/ci-build-test.sh