diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9472840..2946d42 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -12,6 +12,7 @@ jobs: strategy: fail-fast: false matrix: + os: [ubuntu-latest, windows-latest, macos-latest] example: - "libraries/n-able/examples/FreeRTOS" - "libraries/n-able/examples/BLE_Advertiser" @@ -26,7 +27,7 @@ jobs: - Generic_nRF52840 - feather52840 - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} steps: - uses: actions/checkout@v6 @@ -45,7 +46,7 @@ jobs: cli-version: latest platforms: | - name: "n-able-Arduino:arm-ble" - source-url: "https://h2zero.github.io/n-able-Arduino/package_n-able_boards_index.json" + source-url: "https://h2zero.github.io/n-able-Arduino/package_n-able_boards_test_index.json" version: latest - name: "n-able-Arduino:arm-ble" source-path: . @@ -53,79 +54,3 @@ jobs: - name: NimBLE-Arduino fqbn: "n-able-Arduino:arm-ble:${{ matrix.variant }}" sketch-paths: ${{ matrix.example }} - - build_pio: - strategy: - fail-fast: false - matrix: - example: - - "example/lib/examples/Bluetooth_5/NimBLE_extended_server" - - "example/lib/examples/NimBLE_Server" - - "example/lib/examples/NimBLE_Client" - variant: - - generic_nrf51822_xxaa - - generic_nrf52810 - - generic_nrf52832 - - generic_nrf52833 - - generic_nrf52840 - - adafruit_feather_nrf52840 - nimble_version: - - release/2.3 - - master - include: - - example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server" - flags: build_flags = '-DCONFIG_BT_NIMBLE_EXT_ADV=1' - - example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server" - nimble_version: master - flags: build_flags = '-DMYNEWT_VAL_BLE_EXT_ADV=1' - - variant: adafruit_feather_nrf52840 - bootloader: board_bootloader = adafruit - exclude: - - example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server" - variant: generic_nrf51822_xxaa - - example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server" - variant: generic_nrf52832 - - example: "example/lib/examples/Bluetooth_5/NimBLE_extended_server" - variant: generic_nrf52810 - - runs-on: ubuntu-latest - - steps: - - name: Make build folders - run: | - mkdir -p example/framework - mkdir example/src - mkdir example/lib - - name: Checkout n-able-arduino - uses: actions/checkout@v6 - with: - path: example/framework - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.x" - - name: Install platformio - run: | - python -m pip install --upgrade pip - pip install platformio - - name: Checkout NimBLE_Arduino - uses: actions/checkout@v6 - with: - repository: h2zero/NimBLE-Arduino - ref: ${{ matrix.nimble_version }} - path: example/lib - - name: Build n-able PIO - run: | - cat > example/platformio.ini << EOF - [env] - platform = https://github.com/h2zero/platform-n-able.git - platform_packages = framework-n-able-arduino @ file://./framework - framework = arduino - ${{ matrix.flags }} - ${{ matrix.bootloader }} - - [env:${{ matrix.variant }}] - board = ${{ matrix.variant }} - EOF - cp ${{ matrix.example }}/* example/src/ - platformio run -d example diff --git a/platform.txt b/platform.txt index f46ee72..fc6cfc7 100644 --- a/platform.txt +++ b/platform.txt @@ -28,7 +28,7 @@ compiler.warning_flags.default= compiler.warning_flags.more=-Wall compiler.warning_flags.all=-Wall -Wextra -compiler.path={runtime.tools.gcc-arm-none-eabi-9.3.1-1.path}/bin/ +compiler.path={runtime.tools.gcc-arm-none-eabi-10.3.1-2.1.path}/bin/ compiler.c.cmd=arm-none-eabi-gcc compiler.c.flags=-mcpu={build.mcu} -mthumb -c -g -Os {compiler.warning_flags} {build.float_flags} -Wno-unused-parameter -Wno-sign-compare -Wno-old-style-declaration -std=gnu11 -ffunction-sections -fdata-sections -nostdlib --param max-inline-insns-single=500 -MMD compiler.c.elf.cmd=arm-none-eabi-g++