test 3 #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Run | |
on: | |
push: | |
pull_request: | |
jobs: | |
build-and-run: | |
name: Build and run app, confirm startup message | |
runs-on: ubuntu-20.04 | |
steps: | |
- name: Checkout cFS | |
uses: actions/checkout@v4 | |
with: | |
repository: nasa/cFS | |
path: cfs | |
- name: Checkout Sample App | |
uses: actions/checkout@v4 | |
with: | |
path: cfs/apps/sample_app | |
- name: Copy Files | |
run: | | |
cp ./cfs/cfe/cmake/Makefile.sample ./cfs/Makefile | |
cp -r ./cfs/cfe/cmake/sample_defs ./cfs/sample_defs | |
- name: Build cFS | |
run: | | |
cd cfs | |
make SIMULATION=native prep | |
make | |
make install | |
- name: Run cFS | |
run: | | |
cd cfs/build/exe/cpu1 | |
./core-cpu1 & | |
sleep 10 | |
grep "Sample App Initialized" core-cpu1.log | |
- name: Upload logs | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: cFS-logs | |
path: cfs/build/exe/cpu1/*.log |