diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 7067e57..b8e96e0 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -52,6 +52,7 @@ 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 @@ -59,10 +60,12 @@ jobs: uses: mattnotmitt/doxygen-action@v1.12.0 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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index c846191..8e56126 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -52,6 +52,7 @@ 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 @@ -59,7 +60,7 @@ jobs: if: always() with: clang-format-version: "18" - check-path: ./include + check-path: ${{ inputs.dir }}/include exclude-regex: ".*/third_party/.*" - name: ๐Ÿงน Format Check `src/` directory @@ -67,7 +68,7 @@ jobs: 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 @@ -75,7 +76,7 @@ jobs: 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 @@ -83,5 +84,5 @@ jobs: if: always() with: clang-format-version: "18" - check-path: ./tests + check-path: ${{ inputs.dir }}/tests exclude-regex: ".*/third_party/.*" diff --git a/.github/workflows/self_check.yml b/.github/workflows/self_check.yml index 3f6e883..b8e752a 100644 --- a/.github/workflows/self_check.yml +++ b/.github/workflows/self_check.yml @@ -92,7 +92,7 @@ jobs: with: library: libhal-micromod source_dir: src - dir: src + dir: . repo: libhal/libhal-micromod secrets: inherit @@ -101,7 +101,7 @@ jobs: with: library: libhal-micromod source_dir: src - dir: src + dir: . repo: libhal/libhal-micromod secrets: inherit