[NO REVIEW NEEDED YET] migration-in-progress: Migrate pico, maxim and xilinx platform to github actions #2
This file contains hidden or 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: Main build workflow for no-os | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - staging/* | |
| - next_stable | |
| - '20*' | |
| permissions: | |
| contents: read | |
| env: | |
| NUM_JOBS: 4 | |
| jobs: | |
| checkers: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| fetch-depth: 50 | |
| clean: true | |
| - name: Astyle check | |
| shell: sh | |
| run: | | |
| ${{ github.workspace }}/.github/scripts/astyle.sh | |
| env: | |
| NUM_JOBS: ${{ env.NUM_JOBS }} | |
| - name: Check-cpp format | |
| shell: sh | |
| run: | | |
| ${{ github.workspace }}/.github/scripts/cppcheck.sh | |
| build-drivers: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v5 | |
| with: | |
| submodules: recursive | |
| - name: Build drivers | |
| shell: sh | |
| run: | | |
| sudo apt-get install -y gcc-arm-none-eabi libnewlib-arm-none-eabi | |
| make -j${NUM_JOBS} -C ${{ github.workspace }}/drivers -f Makefile | |