From ab718dfdf6e5213027c12c711bcb81956fa2fc16 Mon Sep 17 00:00:00 2001 From: ahiuchingau <20424172+ahiuchingau@users.noreply.github.com> Date: Fri, 12 Jan 2024 15:25:59 -0500 Subject: [PATCH] well well --- .github/actions/cross-compile-build/action.yaml | 16 ++++++++++++++++ .github/actions/cross-compile-check/action.yaml | 7 +------ .github/workflows/non-executable-workflow.yaml | 5 +++++ 3 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 .github/actions/cross-compile-build/action.yaml diff --git a/.github/actions/cross-compile-build/action.yaml b/.github/actions/cross-compile-build/action.yaml new file mode 100644 index 000000000..a4edb5fcc --- /dev/null +++ b/.github/actions/cross-compile-build/action.yaml @@ -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 }} + diff --git a/.github/actions/cross-compile-check/action.yaml b/.github/actions/cross-compile-check/action.yaml index ee643f836..cee530944 100644 --- a/.github/actions/cross-compile-check/action.yaml +++ b/.github/actions/cross-compile-check/action.yaml @@ -1,5 +1,5 @@ name: Cross-Compile/Check -description: Configure, Format and Build target +description: Configure, Format and Lint runs: using: composite @@ -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 diff --git a/.github/workflows/non-executable-workflow.yaml b/.github/workflows/non-executable-workflow.yaml index cf2b6521f..1fec46354 100644 --- a/.github/workflows/non-executable-workflow.yaml +++ b/.github/workflows/non-executable-workflow.yaml @@ -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"