-
Notifications
You must be signed in to change notification settings - Fork 2
66 lines (57 loc) · 1.56 KB
/
build-simulators.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: "build simulators"
on:
push:
branches:
- "*"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref_name }}
cancel-in-progress: true
defaults:
run:
shell: bash
working-directory: ot3-firmware
jobs:
build-simulators:
strategy:
matrix:
target: [
bootloader,
gantry-x,
gantry-y,
gripper,
head,
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 Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}-simulator-${{ github.ref_name }}
path: ./ot3-firmware/build-host/*/simulator/*-simulator