Skip to content

Commit

Permalink
well well
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Jan 12, 2024
1 parent 63d7afc commit ab718df
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
16 changes: 16 additions & 0 deletions .github/actions/cross-compile-build/action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Cross-Compile/Build
description: Build target

inputs:
target:
description: Firmware Target to build
required: true

runs:
using: composite
steps:
- name: Build g4
run: cmake --build --preset=${{ inputs.target }}
shell: bash
working-directory: ${{ env.DEFAULT_DIRECTORY }}

7 changes: 1 addition & 6 deletions .github/actions/cross-compile-check/action.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Cross-Compile/Check
description: Configure, Format and Build target
description: Configure, Format and Lint

runs:
using: composite
Expand All @@ -14,11 +14,6 @@ runs:
shell: bash
working-directory: ${{ env.DEFAULT_DIRECTORY }}

- name: Build g4
run: cmake --build --preset=${{ env.TARGET }}
shell: bash
working-directory: ${{ env.DEFAULT_DIRECTORY }}

- name: Lint
run: cmake --build ./build-cross --target ${{ env.TARGET }}-lint
shell: bash
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/non-executable-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ name: Workflow for Non-executable Targets
on:
workflow_call:

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

jobs:
cross-compile-check:
name: "Cross-Compile/Check"
Expand Down

0 comments on commit ab718df

Please sign in to comment.