diff --git a/.github/workflows/carbonix_build.yml b/.github/workflows/carbonix_build.yml index 9436f0bf4a..b0ac3eef72 100644 --- a/.github/workflows/carbonix_build.yml +++ b/.github/workflows/carbonix_build.yml @@ -175,7 +175,38 @@ 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: | @@ -183,15 +214,14 @@ jobs: 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