Skip to content

Commit

Permalink
finally
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Jan 18, 2024
1 parent f6ad497 commit 15b1e0f
Show file tree
Hide file tree
Showing 6 changed files with 62 additions and 348 deletions.
85 changes: 1 addition & 84 deletions .github/workflows/build-simulators.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Build Simulators"
name: "build simulators"
on:
push:
branches:
Expand Down Expand Up @@ -72,86 +72,3 @@ jobs:
matrix.target
)
}}
build-all-simulators-in-one-go:
name: build all 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: Build Simulator
run: cmake --build --preset simulators-gcc10

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: bootloader-simulator-${{ github.ref_name }}
path: ot3-firmware/build-host/bootloader/simulator/bootloader-simulator

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: gantry-x-simulator-${{ github.ref_name }}
path: ot3-firmware/build-host/gantry/simulator/gantry-x-simulator

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: gantry-y-simulator-${{ github.ref_name }}
path: ot3-firmware/build-host/gantry/simulator/gantry-y-simulator

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: gripper-simulator-${{ github.ref_name }}
path: ot3-firmware/build-host/gripper/simulator/gripper-simulator

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: head-simulator-${{ github.ref_name }}
path: ot3-firmware/build-host/head/simulator/head-simulator

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: hepa-uv-simulator-${{ github.ref_name }}
path: ot3-firmware/build-host/hepa-uv/simulator/hepa-uv-simulator

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: pipettes-single-simulator-${{ github.ref_name }}
path: ot3-firmware/build-host/pipettes/simulator/pipettes-single-simulator

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: pipettes-multi-simulator-${{ github.ref_name }}
path: ot3-firmware/build-host/pipettes/simulator/pipettes-multi-simulator

- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: pipettes-96-simulator-${{ github.ref_name }}
path: ot3-firmware/build-host/pipettes/simulator/pipettes-96-simulator
2 changes: 1 addition & 1 deletion .github/workflows/build-tests.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Build and Test"
name: "build-and-test"
on:
push:
branches:
Expand Down
62 changes: 60 additions & 2 deletions .github/workflows/cross-compile-all.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Cross-compile all"
name: "cross-compile/format/lint all targets"
on:
push:
branches:
Expand All @@ -15,7 +15,7 @@ defaults:
working-directory: ot3-firmware

jobs:
parallel-build:
build-cross:
runs-on: "ubuntu-20.04"
timeout-minutes: 20
strategy:
Expand Down Expand Up @@ -57,3 +57,61 @@ jobs:

- name: Build all STM32G4 applications
run: cmake --build --preset=${{ matrix.target }} --target ${{ matrix.target }}-images ${{ matrix.target }}-applications

format:
runs-on: "ubuntu-20.04"
timeout-minutes: 20
name: Formatting
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=cross .

- name: Format
run: cmake --build ./build-cross --target format-ci

lint:
runs-on: "ubuntu-20.04"
timeout-minutes: 20
name: Linting
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=cross .

- name: Format
run: cmake --build ./build-cross --target lint
122 changes: 0 additions & 122 deletions .github/workflows/hepa_uv.yaml

This file was deleted.

62 changes: 0 additions & 62 deletions .github/workflows/non-executable-workflow.yaml

This file was deleted.

Loading

0 comments on commit 15b1e0f

Please sign in to comment.