Skip to content

[#30] Multiple Configurations #52

[#30] Multiple Configurations

[#30] Multiple Configurations #52

Workflow file for this run

name: CI
on:
pull_request:
branches:
- '**'
env:
CTEST_OUTPUT_ON_FAILURE: true
jobs:
build-simulith:
runs-on: ubuntu-latest
container:
image: tryspaceorg/tryspace-lab:0.0.1
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 1
- name: Build Simulith
run: |
cd cfg
python3 tryspace-orchestrator.py
cd ..
for dir in $(pwd)/comp/*/sim ; do
if [ -d "$dir" ] && [ -f "$dir/Makefile" ]; then
echo "Building component in $dir"
make -C "$dir" build-sim
fi
done
cd simulith
make build-sim
build-fsw:
runs-on: ubuntu-latest
container:
image: tryspaceorg/tryspace-lab:0.0.1
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 1
- name: Build FSW
run: |
cd cfg
python3 tryspace-orchestrator.py
export MISSION=$(python3 -c "import yaml; print(yaml.safe_load(open('active.yaml'))['mission'])")
export SPACECRAFT=$(python3 -c "import yaml; print(yaml.safe_load(open('active.yaml'))['spacecraft'])")
cd ../fsw
MISSION=$MISSION SPACECRAFT=$SPACECRAFT make build-fsw
build-test:
runs-on: ubuntu-latest
container:
image: tryspaceorg/tryspace-lab:0.0.1
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 1
- name: Build Tests
run: |
cd cfg
python3 tryspace-orchestrator.py
export MISSION=$(python3 -c "import yaml; print(yaml.safe_load(open('active.yaml'))['mission'])")
export SPACECRAFT=$(python3 -c "import yaml; print(yaml.safe_load(open('active.yaml'))['spacecraft'])")
cd ../fsw
MISSION=$MISSION SPACECRAFT=$SPACECRAFT make build-test
- name: Upload to Codecov
uses: codecov/codecov-action@v5
with:
verbose: true
recurse_submodules: true
build-cli:
runs-on: ubuntu-latest
container:
image: tryspaceorg/tryspace-lab:0.0.1
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 1
- name: Build CLI
run: |
cd cfg
python3 tryspace-orchestrator.py
cd ..
for dir in $(pwd)/comp/*/cli ; do
if [ -f "$dir/Makefile" ]; then
echo "Building CLI component in $dir"
make -C "$dir" build-cli || { echo "Failed building $dir"; exit 1; }
fi
done