Skip to content

Commit

Permalink
lets race again
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Jan 18, 2024
1 parent bc48954 commit 7a144bc
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 15 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build-all-applications.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ concurrency:

defaults:
run:
shell: bash
working-directory: ot3-firmware

jobs:
Expand Down
78 changes: 64 additions & 14 deletions .github/workflows/build-simulators.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,28 +5,77 @@ on:
- "*"
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true

defaults:
run:
shell: bash
working-directory: ot3-firmware

concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true

jobs:
build-simulators:
strategy:
matrix:
target: [head, gantry-x, gantry-y, gripper, pipettes-single, pipettes-multi, pipettes-96]
name: ${{ matrix.target }} Simulator
target: [
bootloader,
gantry-x,
gantry-y,
gripper,
head,
hepa-uv,
pipettes-single,
pipettes-multi,
pipettes-96,
]
name: ${{ matrix.target }} simulator
runs-on: "ubuntu-20.04"
timeout-minutes: 10
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=host-gcc10 .

- name: setup state manager
run: cmake --build ./build-host --target state-manager-setup

- name: Build Simulator
run: cmake --build ./build-host --target ${{ matrix.target }}-simulator

# - name: Upload artifacts
# uses: actions/upload-artifact@v3
# with:
# name: ${{ matrix.target }}-simulator-${{ github.ref_name }}
# path: |

build-all-simulators-in-one-go:
name: build all simulator
runs-on: "ubuntu-20.04"
timeout-minutes: 10
env:
ci: 1
DEFAULT_DIRECTORY: ot3-firmware
TARGET: ${{ matrix.target }}
steps:
- name: Checkout ot3-firmware repo
uses: actions/checkout@v4
with:
path: ot3-firmware

- name: Checkout github actions directory
uses: actions/checkout@v4
with:
Expand All @@ -45,16 +94,17 @@ jobs:
shell: bash
working-directory: ${{ env.DEFAULT_DIRECTORY }}

- name: setup state manager
run: cmake --build ./build-host --target state-manager-setup

- name: Build Simulator
run: cmake --build ./build-host --target ${{ matrix.target }}-simulator
run: cmake --build ./build-host
shell: bash
working-directory: ${{ env.DEFAULT_DIRECTORY }}

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

1 change: 0 additions & 1 deletion CMakePresets.json
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@
"configurePreset": "host",
"jobs": 4,
"targets": [
"state-manager-setup",
"bootloader-simulator",
"head-simulator",
"gantry-x-simulator",
Expand Down

0 comments on commit 7a144bc

Please sign in to comment.