From 154ab7ccbb07c318034592b5582146629d3dffc7 Mon Sep 17 00:00:00 2001 From: Logan Rundle <154925928+LoganRundle-1@users.noreply.github.com> Date: Tue, 13 Jan 2026 17:48:19 -0500 Subject: [PATCH 1/6] added workflow folder --- .github/{ => workflows}/native-test.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{ => workflows}/native-test.yml (100%) diff --git a/.github/native-test.yml b/.github/workflows/native-test.yml similarity index 100% rename from .github/native-test.yml rename to .github/workflows/native-test.yml From 6a55b1f443c1ff21057824adc720bea2fdde9a53 Mon Sep 17 00:00:00 2001 From: Logan Rundle <154925928+LoganRundle-1@users.noreply.github.com> Date: Tue, 13 Jan 2026 17:55:25 -0500 Subject: [PATCH 2/6] added file tree for debugging --- .github/workflows/native-test.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/native-test.yml b/.github/workflows/native-test.yml index ed7da06..0793267 100644 --- a/.github/workflows/native-test.yml +++ b/.github/workflows/native-test.yml @@ -6,8 +6,6 @@ on: - '**' workflow_dispatch: - - jobs: test-native: @@ -29,10 +27,14 @@ jobs: mkdir -p native/lib mv avionics native/lib/avionics + - name: Show native directory structure + run: | + echo "===== native directory tree =====" + ls -R native + - name: Download Rocket-test-data v1.0.0 release CSVs run: | mkdir -p native/data - curl -s https://api.github.com/repos/CURocketEngineering/Rocket-test-data/releases/tags/v1.0.0 \ | jq -r '.assets[].browser_download_url' \ | while read url; do From ad2e3c6a822e451e9adf86a6ccf8ea423973b84b Mon Sep 17 00:00:00 2001 From: Logan Rundle <154925928+LoganRundle-1@users.noreply.github.com> Date: Tue, 13 Jan 2026 18:03:26 -0500 Subject: [PATCH 3/6] move tree folder --- .github/workflows/native-test.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/native-test.yml b/.github/workflows/native-test.yml index 0793267..e2ae12b 100644 --- a/.github/workflows/native-test.yml +++ b/.github/workflows/native-test.yml @@ -27,10 +27,6 @@ jobs: mkdir -p native/lib mv avionics native/lib/avionics - - name: Show native directory structure - run: | - echo "===== native directory tree =====" - ls -R native - name: Download Rocket-test-data v1.0.0 release CSVs run: | @@ -45,6 +41,11 @@ jobs: - name: Install PlatformIO Core run: | pip install -U platformio + + - name: Show native directory structure + run: | + echo "===== native directory tree =====" + ls -R native - name: Run PlatformIO Tests working-directory: ./native From 802e5f7b831d4d14fa9f59c2bf6074539ba89e1f Mon Sep 17 00:00:00 2001 From: Logan Rundle <154925928+LoganRundle-1@users.noreply.github.com> Date: Wed, 14 Jan 2026 10:54:38 -0500 Subject: [PATCH 4/6] fix file name after downloading --- .github/workflows/native-test.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/native-test.yml b/.github/workflows/native-test.yml index e2ae12b..0eb8a6d 100644 --- a/.github/workflows/native-test.yml +++ b/.github/workflows/native-test.yml @@ -32,16 +32,21 @@ jobs: run: | mkdir -p native/data curl -s https://api.github.com/repos/CURocketEngineering/Rocket-test-data/releases/tags/v1.0.0 \ + https://github.com/CURocketEngineering/Rocket-test-data/releases/tag/v1.0.0 | jq -r '.assets[].browser_download_url' \ | while read url; do echo "Downloading $url" curl -L "$url" -o native/data/$(basename "$url") done - + - name: Fix file name + run: | + mv native/data/AA.Data.Collection.-.Second.Launch.Trimmed.csv \ + native/data/"AA Data Collection - Second Launch Trimmed.csv" + - name: Install PlatformIO Core run: | pip install -U platformio - + - name: Show native directory structure run: | echo "===== native directory tree =====" From 3ddc2d569ad4e07539221981241654cbc7b7d468 Mon Sep 17 00:00:00 2001 From: Logan Rundle <154925928+LoganRundle-1@users.noreply.github.com> Date: Wed, 14 Jan 2026 11:13:06 -0500 Subject: [PATCH 5/6] fix download funtion --- .github/workflows/native-test.yml | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/.github/workflows/native-test.yml b/.github/workflows/native-test.yml index 0eb8a6d..459bfff 100644 --- a/.github/workflows/native-test.yml +++ b/.github/workflows/native-test.yml @@ -31,18 +31,19 @@ jobs: - name: Download Rocket-test-data v1.0.0 release CSVs run: | mkdir -p native/data - curl -s https://api.github.com/repos/CURocketEngineering/Rocket-test-data/releases/tags/v1.0.0 \ - https://github.com/CURocketEngineering/Rocket-test-data/releases/tag/v1.0.0 - | jq -r '.assets[].browser_download_url' \ - | while read url; do - echo "Downloading $url" - curl -L "$url" -o native/data/$(basename "$url") - done + curl -s \ + -H "Accept: application/vnd.github+json" \ + https://api.github.com/repos/CURocketEngineering/Rocket-Test-Data/releases/tags/v1.0.0 \ + | jq -r '.assets[].browser_download_url' \ + | while read url; do + echo "Downloading $url" + curl -L "$url" -o native/data/$(basename "$url") + done - name: Fix file name run: | mv native/data/AA.Data.Collection.-.Second.Launch.Trimmed.csv \ native/data/"AA Data Collection - Second Launch Trimmed.csv" - + - name: Install PlatformIO Core run: | pip install -U platformio From fa3dde08b44c6a2418e8bb1f42b906a825897e08 Mon Sep 17 00:00:00 2001 From: Logan Rundle <154925928+LoganRundle-1@users.noreply.github.com> Date: Thu, 15 Jan 2026 09:49:20 -0500 Subject: [PATCH 6/6] changed to allow no standard c++ to allow all all cases to compile and added descriptions for steps --- .github/workflows/native-test.yml | 29 +++++++++++++++++++++++++---- 1 file changed, 25 insertions(+), 4 deletions(-) diff --git a/.github/workflows/native-test.yml b/.github/workflows/native-test.yml index 459bfff..1452c6f 100644 --- a/.github/workflows/native-test.yml +++ b/.github/workflows/native-test.yml @@ -1,10 +1,12 @@ -name: Test on Native +name: Test With Native on: + #triggers the workflow on pull requests pull_request: branches: - '**' + #allows manual triggering of the workflow workflow_dispatch: jobs: @@ -12,22 +14,25 @@ jobs: runs-on: ubuntu-latest steps: + #gets the current repo - name: Checkout avionics repo uses: actions/checkout@v4 with: path: avionics - + + #clones the native repo - name: Clone Native repo run: | git clone https://github.com/CURocketEngineering/Native native + #replaces the linked avionics repo with the current avionics code - name: Replace Native lib avionics with checked-out avionics code run: | rm -rf native/lib/avionics mkdir -p native/lib mv avionics native/lib/avionics - + #downlaods the rocket-test-data for the test - name: Download Rocket-test-data v1.0.0 release CSVs run: | mkdir -p native/data @@ -39,20 +44,36 @@ jobs: echo "Downloading $url" curl -L "$url" -o native/data/$(basename "$url") done + + #fixes the file name replacing the . with spaces - name: Fix file name run: | mv native/data/AA.Data.Collection.-.Second.Launch.Trimmed.csv \ native/data/"AA Data Collection - Second Launch Trimmed.csv" + #installed PlatformIO core - name: Install PlatformIO Core run: | pip install -U platformio - + #shows the file tree structure for debugging - name: Show native directory structure run: | echo "===== native directory tree =====" ls -R native + #used to allow non-standard C++ code + - name: Make CI permissive for all tests + working-directory: ./native + run: | + echo " + [env:native] + build_flags = + -fpermissive + -Wno-pedantic + -Wno-error + " >> platformio.ini + + #runs platformio test - name: Run PlatformIO Tests working-directory: ./native run: |