Match and link cpu.c on the other versions #59
Workflow file for this run
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: Check Format | |
on: | |
push: | |
pull_request: | |
jobs: | |
format: | |
runs-on: ubuntu-24.04 | |
defaults: | |
run: | |
shell: bash | |
steps: | |
# Checkout the repository (shallow clone) | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: recursive | |
# Set Git config | |
- name: Git config | |
run: git config --global --add safe.directory "$GITHUB_WORKSPACE" | |
# Run formatter | |
- name: Run clang-format | |
run: ./format | |
# Cancel if there's a diff | |
- name: Check status | |
run: git diff --name-only --exit-code |