Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,17 +52,20 @@ jobs:
repository: ${{ inputs.repo }}

- name: 🌐 Downloading doxygen from ci
working-directory: ${{ inputs.dir }}
run: wget https://raw.githubusercontent.com/libhal/ci/main/doxygen.conf -O doxygen.conf

- name: 📖 Run Doxygen
id: doxygen
uses: mattnotmitt/[email protected]
if: always()
with:
working-directory: ${{ inputs.dir }}
doxyfile-path: "doxygen.conf"

# Conditionally read out any doxygen warnings only if `doxygen_check`
# step failed.
- name: ⚠️ Read out any doxygen warnings
if: ${{ failure() && steps.doxygen.conclusion == 'failure' }}
working-directory: ${{ inputs.dir }}
run: cat doxygen_warn.log ; exit 1
9 changes: 5 additions & 4 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,36 +52,37 @@ jobs:
repository: ${{ inputs.repo }}

- name: 🌐 Downloading .clang-format from libhal
working-directory: ${{ inputs.dir }}
run: wget https://raw.githubusercontent.com/libhal/libhal/main/.clang-format -O .clang-format

- name: 🧹 Format Check `include/` directory
uses: jidicula/[email protected]
if: always()
with:
clang-format-version: "18"
check-path: ./include
check-path: ${{ inputs.dir }}/include
exclude-regex: ".*/third_party/.*"

- name: 🧹 Format Check `src/` directory
uses: jidicula/[email protected]
if: ${{ hashFiles(inputs.source_dir) != '' }}
with:
clang-format-version: "18"
check-path: ${{ inputs.source_dir }}
check-path: ${{ inputs.dir }}/${{ inputs.source_dir }}
exclude-regex: ".*/third_party/.*"

- name: 🧹 Format Check `demos/` directory
uses: jidicula/[email protected]
if: ${{ hashFiles('./demos/') != '' }}
with:
clang-format-version: "18"
check-path: ./demos/
check-path: ${{ inputs.dir }}/demos
exclude-regex: ".*/third_party/.*"

- name: 🧹 Format Check `test/` code
uses: jidicula/[email protected]
if: always()
with:
clang-format-version: "18"
check-path: ./tests
check-path: ${{ inputs.dir }}/tests
exclude-regex: ".*/third_party/.*"
4 changes: 2 additions & 2 deletions .github/workflows/self_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ jobs:
with:
library: libhal-micromod
source_dir: src
dir: src
dir: .
repo: libhal/libhal-micromod
secrets: inherit

Expand All @@ -101,7 +101,7 @@ jobs:
with:
library: libhal-micromod
source_dir: src
dir: src
dir: .
repo: libhal/libhal-micromod
secrets: inherit

Expand Down
Loading