Skip to content

Fix code format for clang-format #109

Fix code format for clang-format

Fix code format for clang-format #109

Workflow file for this run

# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Java UT
on:
workflow_dispatch:
pull_request:
types: [ opened, reopened, synchronize ]
paths:
- '**/*'
push:
branches:
- 'main'
paths:
- '**/*'
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
ut-ubuntu24:
strategy:
matrix:
runner: [
"ubuntu-latest",
"ubuntu-24.04-arm"
]
exclude:
- runner: "ubuntu-24.04-arm"
runs-on: ${{ matrix.runner }}
env:
HOST_CCACHE_DIR: "${{ github.workspace }}/.ccache"
CCACHE_MAXSIZE: 3000M
steps:
- uses: actions/checkout@v4
- name: Restore Ccache
uses: actions/cache/restore@v4
with:
path: '${{ env.HOST_CCACHE_DIR }}'
key: ut-java-ut-ubuntu24-${{runner.arch}}-ccache-${{github.sha}}
restore-keys: |
ut-java-ut-ubuntu24-${{runner.arch}}-ccache-
- name: Run setup script / Build and run UTs
run: |
docker run -v ${{ github.workspace }}:/velox4j -w / ubuntu:24.04 bash -c "
export CCACHE_DIR=/velox4j/.ccache
export CCACHE_MAXSIZE=3000M
cd /velox4j
bash .github/workflows/scripts/ut-java/setup-ubuntu24.sh
mvn clean test
"
- name: Save Ccache
uses: actions/cache/save@v4
with:
path: '${{ env.HOST_CCACHE_DIR }}'
key: ut-java-ut-ubuntu24-${{runner.arch}}-ccache-${{github.sha}}
ut-centos7:
runs-on: ubuntu-latest
env:
HOST_CCACHE_DIR: "${{ github.workspace }}/.ccache"
steps:
- uses: actions/checkout@v4
- name: Restore Ccache
uses: actions/cache/restore@v4
with:
path: '${{ env.HOST_CCACHE_DIR }}'
key: ut-java-ut-centos7-ccache-${{github.sha}}
restore-keys: |
ut-java-ut-centos7-ccache-
- name: Run setup script / Build and run UTs
run: |
docker run -v ${{ github.workspace }}:/velox4j -w / centos:7 bash -c "
export CCACHE_DIR=/velox4j/.ccache
export CCACHE_MAXSIZE=3000M
cd /velox4j
bash .github/workflows/scripts/ut-java/setup-centos7.sh
mvn clean test
"
- name: Save Ccache
uses: actions/cache/save@v4
with:
path: '${{ env.HOST_CCACHE_DIR }}'
key: ut-java-ut-centos7-ccache-${{github.sha}}