Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Jan 12, 2024
1 parent 0277a26 commit 0f6847f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 6 additions & 1 deletion .github/actions/main-setup/action.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
name: ot3-firmware Repo Setup
description: Setup for ot3-firmware Github Actions

inputs:
cache-version:
description: CACHE_VERSION from secrets
required: true

runs:
using: composite
steps:
Expand All @@ -25,7 +30,7 @@ runs:
id: cache-tools
with:
path: ot3-firmware/stm32-tools
key: ${{ runner.os }}-${{ hashFiles('**/cmake/*') }}-${{ env.CACHE_VERSION }}
key: ${{ runner.os }}-${{ hashFiles('**/cmake/*') }}-${{ inputs.cache-version }}

- name: Setup opentrons monorepo
uses: actions/checkout@v4
Expand Down
7 changes: 5 additions & 2 deletions .github/workflows/gripper.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ on:

env:
ci: 1
CACHE_VERSION: ${{ secrets.CACHE_VERSION }}

defaults:
run:
Expand All @@ -68,6 +67,8 @@ jobs:

- name: Setup main
uses: ./actions/.github/actions/main-setup
with:
cache-version: ${{ secrets.CACHE_VERSION }}

- name: Configure
run: cmake --preset=cross .
Expand Down Expand Up @@ -95,6 +96,8 @@ jobs:

- name: Setup main
uses: ./actions/.github/actions/main-setup
with:
cache-version: ${{ secrets.CACHE_VERSION }}

- name: Configure
run: cmake --preset=host-gcc10 .
Expand All @@ -114,4 +117,4 @@ jobs:
with:
name: "gripper-simulator-${{github.ref_name}}"
path: |
build-host/gripper/simulator/gripper-simulator
ot3-firmware/build-host/gripper/simulator/gripper-simulator

0 comments on commit 0f6847f

Please sign in to comment.