Skip to content

Commit

Permalink
Fix #798, Update build and test workflows to include sample/lab apps …
Browse files Browse the repository at this point in the history
…+ lib
  • Loading branch information
thnkslprpt committed Jan 7, 2025
1 parent 54556c6 commit c0bf5b1
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
15 changes: 12 additions & 3 deletions .github/workflows/build-run-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,11 @@ on:
type: string
required: false
default: ''
is_framework_app:
description: Whether this is a framework app (TO/CI/SCH Lab, Sample App)
type: boolean
required: false
default: false

# Force bash to apply pipefail option so pipeline failures aren't masked
defaults:
Expand Down Expand Up @@ -75,12 +80,16 @@ jobs:
- name: Add To Build
run: |
sed -i "/list(APPEND MISSION_GLOBAL_APPLIST/a list(APPEND MISSION_GLOBAL_APPLIST $APP_LOWER)" sample_defs/targets.cmake
if [[ "${{ inputs.is_framework_app }}" == "false" ]]; then
sed -i "/list(APPEND MISSION_GLOBAL_APPLIST/a list(APPEND MISSION_GLOBAL_APPLIST $APP_LOWER)" sample_defs/targets.cmake
fi
- name: Add To Startup
run: |
sed -i "1i CFE_APP, $APP_LOWER, ${APP_UPPER}_AppMain, $APP_UPPER, 80, 16384, 0x0, 0;" sample_defs/cpu1_cfe_es_startup.scr
cat sample_defs/cpu1_cfe_es_startup.scr
if [[ "${{ inputs.is_framework_app }}" == "false" ]]; then
sed -i "1i CFE_APP, $APP_LOWER, ${APP_UPPER}_AppMain, $APP_UPPER, 80, 16384, 0x0, 0;" sample_defs/cpu1_cfe_es_startup.scr
cat sample_defs/cpu1_cfe_es_startup.scr
fi
- name: Make install
run: make SIMULATION=native BUILDTYPE=release OMIT_DEPRECATED=true install
Expand Down
13 changes: 10 additions & 3 deletions .github/workflows/unit-test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
inputs:
# Optional inputs
app-name:
description: Application name, if different from repo name
description: Application or library name, if different from repo name
type: string
required: false
default: ${{ github.event.repository.name }}
Expand All @@ -19,6 +19,11 @@ on:
type: number
required: false
default: 0
is_framework_app:
description: Whether this is a framework/sample app or library
type: boolean
required: false
default: false

# Force bash to apply pipefail option so pipeline failures aren't masked
defaults:
Expand Down Expand Up @@ -75,15 +80,17 @@ jobs:
- name: Add Repo To Build
run: |
sed -i "/list(APPEND MISSION_GLOBAL_APPLIST/a list(APPEND MISSION_GLOBAL_APPLIST $APP_LOWER)" sample_defs/targets.cmake
if [[ "${{ inputs.is_framework_app }}" == "false" ]]; then
sed -i "/list(APPEND MISSION_GLOBAL_APPLIST/a list(APPEND MISSION_GLOBAL_APPLIST $APP_LOWER)" sample_defs/targets.cmake
fi
- name: Make Prep
run: make SIMULATION=native ENABLE_UNIT_TESTS=true OMIT_DEPRECATED=true prep

- name: Build app build dependencies
run: make -C build/tools/elf2cfetbl

- name: Build app target
- name: Build app/library target
run: |
make -C build/native/default_cpu1/apps/$APP_LOWER
Expand Down

0 comments on commit c0bf5b1

Please sign in to comment.