CI linux #11
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: format | |
permissions: | |
actions: write | |
contents: read | |
'on': | |
pull_request: | |
push: | |
branches: | |
- master | |
env: | |
UBSAN_OPTIONS: print_stacktrace=1 | |
jobs: | |
posix: | |
strategy: | |
fail-fast: false | |
name: 'format' | |
runs-on: ubuntu-22.04 #bug in std library(https://gcc.gnu.org/bugzilla/show_bug.cgi?id=115119) | |
steps: | |
- name: Cancel Previous Runs | |
uses: styfle/cancel-workflow-action@0.9.1 | |
- name: Checkout the code | |
uses: actions/checkout@v2 | |
- name: Install clang-format | |
run: | | |
sudo apt install clang-format-17 | |
- name: Format | |
run: > | |
sudo make | |
-f scripts/ci_ubuntu.make | |
format | |
- name: Check if all files are committed to git | |
run: > | |
sudo make | |
-f scripts/ci_ubuntu.make | |
check-git-status |