Skip to content

Commit

Permalink
add head target
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Jan 8, 2024
1 parent 16177fe commit e836e3e
Showing 1 changed file with 3 additions and 34 deletions.
37 changes: 3 additions & 34 deletions .github/workflows/head.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,38 +85,7 @@ jobs:
fetch-depth: 0
path: ot3-firmware

- name: Checkout opentrons repository
uses: actions/checkout@v3
- name: Host Compile Setup
uses: actions/host-compile-setup/action
with:
repository: "Opentrons/opentrons"
path: opentrons

- name: Cache stm32-tools
uses: "actions/cache@v3"
with:
path: "./stm32-tools"
key: ${{ runner.os }}-${{ hashFiles('**/cmake/*') }}-${{ secrets.CACHE_VERSION }}

- name: "Configure"
run: cmake --preset=host-gcc10 .
working-directory: ot3-firmware

- name: 'Build and test'
run: cmake --build ./build-host --target head-build-and-test
working-directory: ot3-firmware

- name: 'Setup state_manager'
run: cmake --build ./build-host/ --target state-manager-setup
working-directory: ot3-firmware

- name: 'Build simulator'
run: cmake --build ./build-host --target head-simulator
working-directory: ot3-firmware

- name: 'Upload artifacts'
if: github.event_name != 'pull_request'
uses: actions/upload-artifact@v3
with:
name: "head-simulator-${{github.ref_name}}"
path: |
build-host/head/simulator/head-simulator
target: 'head'

0 comments on commit e836e3e

Please sign in to comment.