Skip to content

C++ UT

C++ UT #287

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: C++ UT
on:
workflow_dispatch:
schedule:
- cron: "0 4 * * *"
concurrency:
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
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-cpp-ut-centos7-ccache-${{github.sha}}
restore-keys: |
ut-cpp-ut-centos7-ccache-
- name: Run setup script / Build and run UTs
run: |
docker run -v ${{ github.workspace }}:/work -w /work centos:7 bash -c "
export CCACHE_DIR=/work/.ccache
export CCACHE_MAXSIZE=3000M
bash .github/workflows/scripts/ut-cpp/setup-centos7.sh
bash src/main/cpp/test.sh
"
- name: Save Ccache
uses: actions/cache/save@v4
with:
path: '${{ env.HOST_CCACHE_DIR }}'
key: ut-cpp-ut-centos7-ccache-${{github.sha}}