Skip to content

Commit

Permalink
combine lint to build bc it took too long
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Jan 18, 2024
1 parent 5ff665a commit e550415
Showing 1 changed file with 3 additions and 29 deletions.
32 changes: 3 additions & 29 deletions .github/workflows/cross-compile-all.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,9 @@ 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
Expand Down Expand Up @@ -86,32 +89,3 @@ jobs:

- name: Format
run: cmake --build ./build-cross --target format-ci

lint:
runs-on: "ubuntu-20.04"
timeout-minutes: 20
name: Linting
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 lint

0 comments on commit e550415

Please sign in to comment.