Skip to content

Commit

Permalink
.github: added crystal build for Carbonix Build
Browse files Browse the repository at this point in the history
As we had CPN without crystal in our production so need to generate builds for it.

SW-182
  • Loading branch information
loki077 committed May 6, 2024
1 parent 47894c7 commit eacecb5
Showing 1 changed file with 34 additions and 4 deletions.
38 changes: 34 additions & 4 deletions .github/workflows/carbonix_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -175,23 +175,53 @@ jobs:
./waf configure --board "$board" --define=CARBOPILOT=1
./waf plane
done
echo "Script completed successfully."
- name: build Carbonix Periph boards With crystal
shell: bash
run: |
boards=("CarbonixF405" "Volanti-M1" "Volanti-M2" "Volanti-M3" "Volanti-M4" "Volanti-M5" "Volanti-LWing" "Volanti-RWing" "Volanti-LTail" "Volanti-RTail" "Ottano-M1" "Ottano-M2" "Ottano-M3" "Ottano-M4" "Ottano-M5" "Ottano-LWing" "Ottano-RWing" "Ottano-LTail" "Ottano-RTail")
for board in "${boards[@]}"; do
echo "Compiling AP_Periph for $board..."
./Tools/scripts/build_bootloaders.py "$board"
./waf configure --board "$board" --define=CARBOPILOT=1 --define=OSCILLATOR_HZ=0
./waf AP_Periph
done
- name: Rename the folder with -NoCrystal
shell: bash
run: |
mv build/CarbonixF405 build/CarbonixF405-NoCrystal
mv build/Volanti-M1 build/Volanti-M1-NoCrystal
mv build/Volanti-M2 build/Volanti-M2-NoCrystal
mv build/Volanti-M3 build/Volanti-M3-NoCrystal
mv build/Volanti-M4 build/Volanti-M4-NoCrystal
mv build/Volanti-M5 build/Volanti-M5-NoCrystal
mv build/Volanti-LWing build/Volanti-LWing-NoCrystal
mv build/Volanti-RWing build/Volanti-RWing-NoCrystal
mv build/Volanti-LTail build/Volanti-LTail-NoCrystal
mv build/Volanti-RTail build/Volanti-RTail-NoCrystal
mv build/Ottano-M1 build/Ottano-M1-NoCrystal
mv build/Ottano-M2 build/Ottano-M2-NoCrystal
mv build/Ottano-M3 build/Ottano-M3-NoCrystal
mv build/Ottano-M4 build/Ottano-M4-NoCrystal
mv build/Ottano-M5 build/Ottano-M5-NoCrystal
mv build/Ottano-LWing build/Ottano-LWing-NoCrystal
mv build/Ottano-RWing build/Ottano-RWing-NoCrystal
mv build/Ottano-LTail build/Ottano-LTail-NoCrystal
mv build/Ottano-RTail build/Ottano-RTail-NoCrystal
- name: build Carbonix Periph boards
shell: bash
run: |
boards=("CarbonixF405" "Volanti-M1" "Volanti-M2" "Volanti-M3" "Volanti-M4" "Volanti-M5" "Volanti-LWing" "Volanti-RWing" "Volanti-LTail" "Volanti-RTail" "Ottano-M1" "Ottano-M2" "Ottano-M3" "Ottano-M4" "Ottano-M5" "Ottano-LWing" "Ottano-RWing" "Ottano-LTail" "Ottano-RTail")
for board in "${boards[@]}"; do
echo "Compiling AP_Periph for $board..."
./Tools/scripts/build_bootloaders.py "$board"
./waf configure --board "$board" --define=CARBOPILOT=1
./waf configure --board "$board" --define=CARBOPILOT=1
./waf AP_Periph
done
echo "Script completed successfully."
- name: Check build files
id: check_files
uses: andstor/file-existence-action@v2
with:
files: "build/CubeOrange/*, build/CarbonixCubeOrange/*, build/sitl/*, build/CarbonixF405/*, build/Volanti-M1/*, build/Volanti-M2/*, build/Volanti-M3/*, build/Volanti-M4/*, build/Volanti-M5/*, build/Volanti-LWing/*, build/Volanti-RWing/*, build/Volanti-LTail/*, build/Volanti-RTail/*, build/Ottano-M1/*, build/Ottano-M2/*, build/Ottano-M3/*, build/Ottano-M4/*, build/Ottano-M5/*, build/Ottano-LWing/*, build/Ottano-RWing/*, build/Ottano-LTail/*, build/Ottano-RTail/*"
files: "build/CubeOrange/*, build/CarbonixCubeOrange/*, build/sitl/*, build/CarbonixF405/*, build/Volanti-M1/*, build/Volanti-M2/*, build/Volanti-M3/*, build/Volanti-M4/*, build/Volanti-M5/*, build/Volanti-LWing/*, build/Volanti-RWing/*, build/Volanti-LTail/*, build/Volanti-RTail/*, build/Ottano-M1/*, build/Ottano-M2/*, build/Ottano-M3/*, build/Ottano-M4/*, build/Ottano-M5/*, build/Ottano-LWing/*, build/Ottano-RWing/*, build/Ottano-LTail/*, build/Ottano-RTail/*, build/CarbonixF405-NoCrystal/*, build/Volanti-M1-NoCrystal/*, build/Volanti-M2-NoCrystal/*, build/Volanti-M3-NoCrystal/*, build/Volanti-M4-NoCrystal/*, build/Volanti-M5-NoCrystal/*, build/Volanti-LWing-NoCrystal/*, build/Volanti-RWing-NoCrystal/*, build/Volanti-LTail-NoCrystal/*, build/Volanti-RTail-NoCrystal/*, build/Ottano-M1-NoCrystal/*, build/Ottano-M2-NoCrystal/*, build/Ottano-M3-NoCrystal/*, build/Ottano-M4-NoCrystal/*, build/Ottano-M5-NoCrystal/*, build/Ottano-LWing-NoCrystal/*, build/Ottano-RWing-NoCrystal/*, build/Ottano-LTail-NoCrystal/*, build/Ottano-RTail-NoCrystal/*"
fail: true
- name: Install zip utility
run: sudo apt-get install zip
Expand Down

0 comments on commit eacecb5

Please sign in to comment.