-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f576d54
commit 16177fe
Showing
2 changed files
with
59 additions
and
35 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
name: 'Host Compiling Setup' | ||
description: 'Set up environment for host compiling' | ||
|
||
inputs: | ||
target: | ||
description: 'What firmware target to build' | ||
required: true | ||
python-version: | ||
description: 'What Python version to use to create the virtual environment' | ||
required: false | ||
default: '3.10' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
|
||
- name: Checkout Opentrons monorepo | ||
uses: actions/checkout@v3 | ||
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 ${{ inputs.target }} | ||
run: cmake --build ./build-host --target ${{ inputs.target }}-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 ${{ inputs.target }} simulator | ||
run: cmake --build ./build-host --target gripper-simulator | ||
working-directory: ot3-firmware | ||
|
||
- name: Upload artifacts ${{ inputs.target }} | ||
if: ${{ github.event_name != 'pull_request' }} | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ inputs.target }}-simulator-${{ github.ref_name }} | ||
path: | | ||
build-host/${{ inputs.target }}/simulator/${{ inputs.target }}-simulator |
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