lets race again #4
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: "Cross-compile all firmware applications" | |
on: | |
push: | |
branches: | |
- "*" | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref_name }} | |
cancel-in-progress: true | |
defaults: | |
run: | |
shell: bash | |
working-directory: ot3-firmware | |
jobs: | |
build-everything-in-one-go: | |
name: "Cross-Compile/Check" | |
runs-on: "ubuntu-20.04" | |
timeout-minutes: 20 | |
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: Build all STM32G4 applications | |
run: cmake --build --preset=firmware-g4 --target firmware-images firmware-applications | |
build-in-parallel: | |
runs-on: "ubuntu-20.04" | |
timeout-minutes: 20 | |
strategy: | |
matrix: | |
target: [ | |
gantry-x, | |
gantry-y, | |
gripper, | |
head, | |
hepa-uv, | |
pipettes-single, | |
pipettes-multi, | |
pipettes-96, | |
rear-panel | |
] | |
fail-fast: false | |
name: ${{ matrix.target }} build | |
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: Build all STM32G4 applications | |
run: cmake --build --preset=${{ matrix.target }} --target ${{ matrix.target }}-images ${{ matrix.target }}-applications |