Skip to content

Commit aeed09e

Browse files
committed
um
1 parent 243e0db commit aeed09e

File tree

9 files changed

+87
-594
lines changed

9 files changed

+87
-594
lines changed

.github/actions/main-setup/action.yaml

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ runs:
2020
with:
2121
python-version: '3.10'
2222

23-
- name: Checkout ot3-firmware repository
24-
uses: actions/checkout@v4
25-
with:
26-
path: ${{ env.DEFAULT_DIRECTORY }}
27-
2823
- name: Cache STM32 Tools
2924
uses: actions/cache@v3
3025
id: cache-tools

.github/workflows/build-cmake-targets.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
executable-workflow:
2424
strategy:
2525
matrix:
26-
target: [gantry, gripper, head, pipettes]
26+
target: [gantry, gripper, head, pipettes, rear-panel]
2727
name: ${{ matrix.target }} Build and Test
2828
uses: ./.github/workflows/executable-workflow.yaml
2929
with:
Lines changed: 83 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
name: "Cross-compile"
2+
on:
3+
push:
4+
workflow_dispatch:
5+
6+
concurrency:
7+
group: ${{ github.workflow }}-${{ github.ref_name }}
8+
cancel-in-progress: true
9+
10+
env:
11+
ci: 1
12+
DEFAULT_DIRECTORY: ot3-firmware
13+
14+
defaults:
15+
run:
16+
shell: bash
17+
working-directory: ot3-firmware
18+
19+
jobs:
20+
build-cross-config:
21+
name: Configure for cross-compiling
22+
runs-on: "ubuntu-20.04"
23+
timeout-minutes: 10
24+
steps:
25+
- name: Checkout github actions directory
26+
uses: actions/checkout@v4
27+
with:
28+
sparse-checkout: |
29+
.github/actions
30+
sparse-checkout-cone-mode: false
31+
path: actions
32+
33+
- name: Checkout ot3-firmware repository
34+
uses: actions/checkout@v4
35+
with:
36+
path: ot3-firmware
37+
38+
- name: Setup main
39+
uses: ./actions/.github/actions/main-setup
40+
with:
41+
cache-version: ${{ secrets.CACHE_VERSION }}
42+
43+
- name: Configure
44+
run: cmake --build --preset=cross .
45+
46+
- name: Upload artifacts
47+
uses: actions/upload-artifact@v4
48+
with:
49+
name: build-cross
50+
path: ot3-firmware/build-cross
51+
52+
cross-compile:
53+
name: cross-compiling
54+
runs-on: "ubuntu-20.04"
55+
timeout-minutes: 20
56+
strategy:
57+
matrix:
58+
target: [ bootloader, can, common, eeprom, i2c, motor-control, sensors, spi ]
59+
steps:
60+
- name: Checkout github actions directory
61+
uses: actions/checkout@v4
62+
with:
63+
sparse-checkout: |
64+
.github/actions
65+
sparse-checkout-cone-mode: false
66+
path: actions
67+
68+
- name: Checkout ot3-firmware repository
69+
uses: actions/checkout@v4
70+
with:
71+
path: ot3-firmware
72+
73+
- name: Setup main
74+
uses: ./actions/.github/actions/main-setup
75+
with:
76+
cache-version: ${{ secrets.CACHE_VERSION }}
77+
78+
- name: Run format-ci
79+
run: |
80+
cd build-cross
81+
make ${{ matrix.target }}-format-ci
82+
83+

.github/workflows/codecov.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ defaults:
1313
run:
1414
shell: bash
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref_name }}
18+
cancel-in-progress: true
1619

1720
jobs:
1821
generate-coverage:

.github/workflows/gantry.yaml

Lines changed: 0 additions & 134 deletions
This file was deleted.

.github/workflows/gripper.yaml

Lines changed: 0 additions & 119 deletions
This file was deleted.

0 commit comments

Comments
 (0)