Skip to content

Commit

Permalink
CI changes
Browse files Browse the repository at this point in the history
  • Loading branch information
externl committed Jun 3, 2024
1 parent 2c2406c commit 1348797
Show file tree
Hide file tree
Showing 2 changed files with 53 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Clang Format and Tidy
name: Clang Format

on:
workflow_dispatch:
Expand Down
52 changes: 52 additions & 0 deletions .github/workflows/clang_tidy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Clang Format

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-latest
steps:
- name: Install bear and clang-tidy
run: |
sudo apt-get update
sudo apt-get install -y bear clang-tidy
bear --version
clang-tidy --version
- name: Checkout Ice
uses: actions/checkout@v4
with:
repository: zeroc-ice/ice
ref: main
path: ice

- name: Setup Ice Build Dependencies
uses: ./ice/.github/actions/setup-dependencies

- name: Build Ice
uses: ./ice/.github/actions/build
timeout-minutes: 90
with:
working_directory: ice
build_flags: srcs

- name: Checkout repository
uses: actions/checkout@v4
with:
path: ice-demos

- name: Build C++ Demos
timeout-minutes: 30
working-directory: ice-demos/cpp
run: bear -- make

- name: Run Clang Tidy
working-directory: ice-demos/cpp
run: |
find . -name "*.h" -o -name "*.cpp" | xargs run-clang-tidy -j$(nproc) -quiet

0 comments on commit 1348797

Please sign in to comment.