Skip to content

Commit

Permalink
Update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
GwGibson committed May 3, 2024
1 parent 73885e7 commit 180009c
Show file tree
Hide file tree
Showing 4 changed files with 28 additions and 25 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
- main

env:
CLANG_TIDY_VERSION: "15.0.2"
CLANG_TIDY_VERSION: "18.1.4"
VERBOSE: 1

jobs:
Expand All @@ -25,8 +25,8 @@ jobs:
- windows-2022
- windows-2019
compiler:
- gcc-11
- llvm-15.0.2
- gcc-13.1
- llvm-18.1.4
- msvc
generator:
- "Ninja Multi-Config"
Expand All @@ -39,7 +39,7 @@ jobs:

exclude:
- os: windows-2019
compiler: gcc-11
compiler: gcc-13.1
- os: windows-2019
compiler: msvc
- os: ubuntu-20.04
Expand All @@ -53,7 +53,7 @@ jobs:
script: |
core.setFailed('There is a mismatch between configured llvm compiler and clang-tidy version chosen')
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Cache
uses: ./.github/actions/setup_cache
Expand Down
36 changes: 19 additions & 17 deletions .github/workflows/clang-format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,27 @@ name: auto-clang-format
on:
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
jobs:
formatting-check:
name: Formatting Check
build:
runs-on: ubuntu-latest
strategy:
matrix:
path:
- check: "**"
exclude: "psim/include/psim/json.h"

steps:
- uses: actions/checkout@v3
- name: Run clang-format style check
uses: jidicula/[email protected]
with:
clang-format-version: "15"
check-path: ${{ matrix.path['check'] }}
exclude-regex: ${{ matrix.path['exclude'] }}
fallback-style: "Google"
- uses: actions/checkout@v4
- uses: DoozyX/[email protected]
with:
source: '.'
exclude: './third_party ./external'
extensions: 'h,cpp,hpp'
clangFormatVersion: 16
inplace: True
- uses: EndBug/add-and-commit@v9
with:
author_name: Clang Robot
author_email: [email protected]
message: ':art: Committing clang-format changes'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ jobs:


steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Setup Cache
uses: ./.github/actions/setup_cache
Expand Down Expand Up @@ -70,7 +70,7 @@ jobs:
# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}

Expand All @@ -80,4 +80,4 @@ jobs:
cmake --build ./build --config ${{matrix.build_type}}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v2
uses: github/codeql-action/analyze@v3
1 change: 1 addition & 0 deletions psim/src/sensorController.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "psim/sensorController.h"
#include <algorithm>
#include <cmath>
#include <utility>

namespace {

Expand Down

0 comments on commit 180009c

Please sign in to comment.