diff --git a/.github/workflows/build-h7a3.yml b/.github/workflows/build-h7a3.yml index 47302a027c..ba30e49735 100644 --- a/.github/workflows/build-h7a3.yml +++ b/.github/workflows/build-h7a3.yml @@ -12,37 +12,36 @@ on: jobs: build: runs-on: ubuntu-latest - container: - image: ardupilot/ardupilot-dev-base:latest steps: - - - name: Install nodejs - run: | - wget -O - https://webi.sh/node | sh - echo ~/.local/opt/node/bin >> $GITHUB_PATH - - - name: Checkout code + - name: Checkout repository uses: actions/checkout@v4 with: submodules: recursive - - name: Install ARM GCC toolchain + - name: Install dependencies run: | sudo apt update - sudo apt install -y gcc-arm-none-eabi + sudo apt install -y python3 python3-pip make git + pip3 install future + + - name: Install updated ARM GCC toolchain + run: | + wget https://developer.arm.com/-/media/Files/downloads/gnu/12.2.rel1/binrel/gcc-arm-none-eabi-12.2.rel1-x86_64-linux.tar.xz + tar -xf gcc-arm-none-eabi-12.2.rel1-x86_64-linux.tar.xz + echo "PATH=$(pwd)/gcc-arm-none-eabi-12.2.rel1/bin:$PATH" >> $GITHUB_ENV + + - name: Verify GCC version + run: | + arm-none-eabi-gcc --version + arm-none-eabi-g++ --version - name: Configure and build run: | - sudo ./waf configure --board MatekH7A3 - sudo ./waf copter - shell: bash + ./waf configure --board MatekH7A3 --verbose + ./waf copter --verbose - - name: Build firmware - run: | - ./waf build - - - name: Upload firmware + - name: Upload firmware artifact uses: actions/upload-artifact@v3 with: name: matek-h7a3-firmware