From df13a7eba9ca5adf06aff4253868c9d766a9a2d7 Mon Sep 17 00:00:00 2001 From: ahiuchingau <20424172+ahiuchingau@users.noreply.github.com> Date: Thu, 18 Jan 2024 16:22:27 -0500 Subject: [PATCH] ok --- .github/workflows/codecov.yaml | 2 +- .github/workflows/cross-compile-all.yaml | 43 ++++++++++++++++++++++-- 2 files changed, 41 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codecov.yaml b/.github/workflows/codecov.yaml index b63235d9c..649079c17 100644 --- a/.github/workflows/codecov.yaml +++ b/.github/workflows/codecov.yaml @@ -63,6 +63,6 @@ jobs: - name: Upload coverage to Codecov uses: codecov/codecov-action@v3 with: - files: ./coverage.xml + files: ot3-firmware/coverage.xml name: codecov-ot3-firmware fail_ci_if_error: true diff --git a/.github/workflows/cross-compile-all.yaml b/.github/workflows/cross-compile-all.yaml index 576f562c4..c298273f2 100644 --- a/.github/workflows/cross-compile-all.yaml +++ b/.github/workflows/cross-compile-all.yaml @@ -58,9 +58,6 @@ jobs: - name: Build all STM32G4 applications run: cmake --build --preset=${{ matrix.target }} --target ${{ matrix.target }}-images ${{ matrix.target }}-applications - - name: Lint - run: cmake --build --preset=${{ matrix.target }} --target ${{ matrix.target }}-lint - format: runs-on: "ubuntu-20.04" timeout-minutes: 20 @@ -89,3 +86,43 @@ jobs: - name: Format run: cmake --build ./build-cross --target format-ci + + lint: + runs-on: "ubuntu-20.04" + timeout-minutes: 20 + name: ${{ matrix.target }} lint + strategy: + matrix: + target: [ + bootloader, + gantry, + gripper, + head, + hepa-uv, + pipettes, + rear-panel + ] + steps: + - name: Checkout ot3-firmware repo + uses: actions/checkout@v4 + with: + path: ot3-firmware + + - name: Checkout github actions directory + uses: actions/checkout@v4 + with: + sparse-checkout: | + .github/actions + sparse-checkout-cone-mode: false + path: actions + + - name: Setup main + uses: ./actions/.github/actions/main-setup + with: + cache-version: ${{ secrets.CACHE_VERSION }} + + - name: Configure + run: cmake --preset=cross . + + - name: Format + run: cmake --build ./build-cross --target ${{ matrix.target }}-lint