Skip to content

Commit

Permalink
build sim
Browse files Browse the repository at this point in the history
  • Loading branch information
ahiuchingau committed Jan 16, 2024
1 parent 4bcc719 commit ad03837
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 45 deletions.
9 changes: 2 additions & 7 deletions .github/actions/cross-compile-build/action.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
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 }}
run: cmake --build --preset=${{ env.TARGET }} --target ${{ env.TARGET }}-images ${{ env.TARGET }}-applications
shell: bash
working-directory: ${{ env.DEFAULT_DIRECTORY }}

- name: Lint
run: cmake --build ./build-cross --target ${{ inputs.target }}-lint
run: cmake --build ./build-cross --target ${{ env.TARGET }}-lint
shell: bash
working-directory: ${{ env.DEFAULT_DIRECTORY }}
67 changes: 29 additions & 38 deletions .github/workflows/executable-workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,46 +45,37 @@ jobs:
- name: Cross-Compile/Check
uses: ./actions/.github/actions/cross-compile-check

cross-compile-build:
name: "Cross-Compile/Build"
needs: cross-compile-check
strategy:
matrix:
build-target: ${{ fromJSON(inputs.sub-targets) }}
steps:
- name: Cross-Compile/Build
uses: ./actions/.github/actions/cross-compile-build

host-compile-test:
name: "Host-Compile/Test"
runs-on: "ubuntu-20.04"
timeout-minutes: 10
steps:
- name: Checkout github actions directory
uses: actions/checkout@v4
with:
sub-target: ${{ matrix.build-target || ""}}
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 }}

# host-compile-test:
# name: "Host-Compile/Test"
# runs-on: "ubuntu-20.04"
# timeout-minutes: 10
# steps:
# - 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: Host-Compile/Test
# uses: ./actions/.github/actions/host-compile-test
- name: Host-Compile/Test
uses: ./actions/.github/actions/host-compile-test

# build-simulator:
# name: "Build Simulator"
# needs: host-build-test
# strategy:
# matrix:
# build-target: ${{ fromJSON(inputs.sub-targets) }}
# steps:
# uses: ./actions/.github/actions/cross-compile-build
# with:
# sub-target: ${{ matrix.build-target || ""}}
build-simulator:
name: "Build Simulator"
needs: host-build-test
strategy:
matrix:
sim-target: ${{ fromJSON(inputs.sub-targets) }}
steps:
uses: ./actions/.github/actions/build-simulator
with:
sub-target: ${{ matrix.sim-target || ""}}

0 comments on commit ad03837

Please sign in to comment.