Skip to content

Add Glacier2/session Demo to Java #1614

Add Glacier2/session Demo to Java

Add Glacier2/session Demo to Java #1614

Workflow file for this run

name: C++
on:
workflow_dispatch:
push:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
jobs:
clang-format:
runs-on: ubuntu-24.04
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Clang Format
run: |
# This LLVM script will add the relevant LLVM PPA: https://apt.llvm.org/
wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh
chmod +x /tmp/llvm.sh
sudo /tmp/llvm.sh 19
sudo apt-get install -y clang-format-19
rm /tmp/llvm.sh
clang-format-19 --version
- name: Run Clang Format
run: |
set -o pipefail
find . -name "*.h" -o -name "*.cpp" | xargs clang-format-19 --style=file --fallback-style=none --Werror --dry-run
clang-tidy:
runs-on: ubuntu-24.04
steps:
- name: Install clang-tidy
run: |
# This LLVM script will add the relevant LLVM PPA: https://apt.llvm.org/
wget https://apt.llvm.org/llvm.sh -O /tmp/llvm.sh
chmod +x /tmp/llvm.sh
sudo /tmp/llvm.sh 19
sudo apt-get install -y clang-tidy-19
rm /tmp/llvm.sh
clang-tidy-19 --version
- name: Checkout repository
uses: actions/checkout@v4
- name: Install Nightly Ice Builds
uses: ./.github/actions/install-nightly-ice
- name: Run Clang Tidy
timeout-minutes: 30
working-directory: cpp
env:
CMAKE_BUILD_PARALLEL_LEVEL: 4
run: |
set -o pipefail
find . -name CMakeLists.txt -type f | while IFS= read -r file; do
dir=$(dirname "$file");
cmake -B "$dir/build" -S "$dir" -DCMAKE_CXX_CLANG_TIDY="clang-tidy-19"
cmake --build "$dir/build"
done