Skip to content

Commit

Permalink
lets race
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Jan 18, 2024
1 parent 2acca04 commit 1c7f062
Show file tree
Hide file tree
Showing 2 changed files with 70 additions and 85 deletions.
97 changes: 70 additions & 27 deletions .github/workflows/build-all-applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,73 @@ defaults:
working-directory: ot3-firmware

jobs:
name: "Cross-Compile/Check"
runs-on: "ubuntu-20.04"
timeout-minutes: 20
steps:
- name: Checkout ot3-firmware repo
uses: actions/checkout@4
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-everying-in-one-go:
name: "Cross-Compile/Check"
runs-on: "ubuntu-20.04"
timeout-minutes: 20
steps:
- name: Checkout ot3-firmware repo
uses: actions/checkout@4
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,
]
name: ${{ matrix.target }} build
steps:
- name: Checkout ot3-firmware repo
uses: actions/checkout@4
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
58 changes: 0 additions & 58 deletions .github/workflows/build-cross-target.yaml

This file was deleted.

0 comments on commit 1c7f062

Please sign in to comment.