Skip to content

Commit

Permalink
Move the clang-format CI job from CircleCI to GitHub actions.
Browse files Browse the repository at this point in the history
This commit contributes to fixing issue #248.
  • Loading branch information
Thomas Bailleux committed Sep 6, 2023
1 parent cc3895f commit 4944f18
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 14 deletions.
14 changes: 0 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -240,19 +240,6 @@ jobs:
fi
fi
check-clang-format:
docker:
- image: cimg/base:2022.12
steps:
- run:
name: Install dependencies
command: sudo apt-get update && sudo apt-get install -y clang-format
- checkout
- run:
name: Check coding style using clang-format
command: |
find . -type f -and '(' -name '*.h' -or -name '*.c' -or -name '*.inc' ')' | xargs clang-format --dry-run --Werror
trigger-downstream-ci:
docker:
- image: cimg/base:2020.01
Expand All @@ -277,7 +264,6 @@ workflows:
version: 2.1
build:
jobs:
- check-clang-format
- ubuntu:
name: ubuntu-focal
context: openquantumsafe
Expand Down
24 changes: 24 additions & 0 deletions .github/workflows/clang-format.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: clang-format tests

on:
push:
branches: [ '*' ]
pull_request:
branches: [ "main" ]

jobs:
clang-format:
runs-on: ubuntu-latest
strategy:
fail-fast: false
container:
image: openquantumsafe/ci-ubuntu-jammy:latest
steps:
- name: Install dependencies
run: apt-get update && apt-get install -y clang-format

- name: Checkout code
uses: actions/checkout@v2

- name: Check coding style using clang-format
run: find . -type f -and '(' -name '*.h' -or -name '*.c' -or -name '*.inc' ')' | xargs clang-format --dry-run --Werror

0 comments on commit 4944f18

Please sign in to comment.