diff --git a/.github/workflows/examples.yml b/.github/workflows/examples.yml new file mode 100644 index 0000000..767e9e4 --- /dev/null +++ b/.github/workflows/examples.yml @@ -0,0 +1,33 @@ +name: Examples + +on: [push] + +jobs: + build: + strategy: + fail-fast: false + matrix: + os: [ubuntu-16.04, windows-latest, macos-latest] + python-version: [2.7, 3.7] + example: + - "examples/arduino-blink" + - "examples/arduino-external-libs" + - "examples/arduino-internal-libs" + - "examples/native-blink" + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + with: + submodules: "recursive" + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python-version }} + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -U https://github.com/platformio/platformio/archive/develop.zip + platformio platform install file://. + - name: Build examples + run: | + platformio run -d ${{ matrix.example }} diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 89e9d3e..0000000 --- a/.travis.yml +++ /dev/null @@ -1,26 +0,0 @@ -language: python -python: - - "2.7" - - "3.6" - -env: - - PLATFORMIO_PROJECT_DIR=examples/arduino-blink - - PLATFORMIO_PROJECT_DIR=examples/arduino-external-libs - - PLATFORMIO_PROJECT_DIR=examples/arduino-internal-libs - - PLATFORMIO_PROJECT_DIR=examples/native-blink - -install: - - pip install -U https://github.com/platformio/platformio/archive/develop.zip - - platformio platform install file://. - -script: - - platformio run -d $PLATFORMIO_PROJECT_DIR - -notifications: - email: false - - slack: - rooms: - secure: l3gd68M7ZBaMPkXQiyG8yQdWlmGLQ5E75NgRpFY+zNpIZB2EbQFqYacGwt8KyICJ4IC3Z3Db78FqxpUpKiYD+AX74GwsLHKc7GlLsEzRaOByAtm/xFRut7Fh32OL6xEigz0LUaCDF/ZDXqPYZHhiX9/7jzyjHOhDUIuk9j924qFtT/CRa5FHh8zeXCVlO79YXCir/+pdhoQLW3majfm+MWnSFGFB4wbYrb0RzP6hs45uJWb1tFaw4xKe/qi65FEFgQ33R+A944xAiNfiKgEEKkFcGXn+0ljCTLpu+svd+COKXWOMD0f5GDj5pVni1s4i4uCZXznKacD3QSKLhLBypd5pebCAdq6s9SBXwpNUNZ7EvzCAOZ3maH2XbkckfSyh7fZZq4tnluOCmnu6gEdLSciemJCfv8Xe+TXgs05LlLg1q3gsqfZ/1kyILfADdVwprVpjwwgAsFF8VTuzV6WRw+gZm3giVIdlu7sLT+GPQ07vsS+3lsybQivm4ZjJuEIMuI8Gig7JcQwHbD1GD7Q5hoeBuEz5XEVxhc+0pUzMdKkajS9BP5ap1g6rylkesSNlAIpPnTQXx0Ejj7jAPBJE9UWJPZVRBuT4FYeJR5vYUSZ0dFv4WoS7dGMqelg9xj+Rbnb2TP3m0QkIEaUNz6nF/ARnJBsTW/6w+Iqc5otA1Yg= - on_failure: always - on_success: change diff --git a/README.md b/README.md index c73a245..83d534e 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Atmel megaAVR: development platform for [PlatformIO](http://platformio.org) -[![Build Status](https://travis-ci.org/platformio/platform-atmelmegaavr.svg?branch=develop)](https://travis-ci.org/platformio/platform-atmelmegaavr) -[![Build status](https://ci.appveyor.com/api/projects/status/wm6hx8n8c23dfbnk/branch/develop?svg=true)](https://ci.appveyor.com/project/ivankravets/platform-atmelmegaavr/branch/develop) + +[![Build Status](https://github.com/platformio/platform-atmelmegaavr/workflows/Examples/badge.svg)](https://github.com/platformio/platform-atmelmegaavr/actions) Microchip's megaAVR is suitable for applications requiring large amounts of code and offers substantial program and data memories with performance up to 20 MIPS. Based on industry-leading, proven technology, the megaAVR family offers Microchip's widest selection of devices in terms of memories, pin counts, and peripherals. diff --git a/appveyor.yml b/appveyor.yml deleted file mode 100644 index fff76d8..0000000 --- a/appveyor.yml +++ /dev/null @@ -1,25 +0,0 @@ -build: off -environment: - - matrix: - - PLATFORMIO_PROJECT_DIR: "examples/arduino-blink" - - PLATFORMIO_PROJECT_DIR: "examples/arduino-external-libs" - - PLATFORMIO_PROJECT_DIR: "examples/arduino-internal-libs" - - PLATFORMIO_PROJECT_DIR: "examples/native-blink" - -install: -- cmd: git submodule update --init --recursive -- cmd: SET PATH=C:\Python36\Scripts;%PATH% -- cmd: pip3 install -U https://github.com/platformio/platformio/archive/develop.zip -- cmd: platformio platform install file://. - -test_script: -- cmd: platformio run -d %PLATFORMIO_PROJECT_DIR% - -notifications: - - provider: Slack - incoming_webhook: - secure: E9H0SU0Ju7WLDvgxsV8cs3J62T3nTTX7QkEjsczN0Sto/c9hWkVfhc5gGWUkxhlD975cokHByKGJIdwYwCewqOI+7BrcT8U+nlga4Uau7J8= - on_build_success: false - on_build_failure: true - on_build_status_changed: true diff --git a/builder/main.py b/builder/main.py index 98ffa1c..e9b8bb0 100644 --- a/builder/main.py +++ b/builder/main.py @@ -64,7 +64,7 @@ def BeforeUpload(target, source, env): # pylint: disable=W0613,W0621 ARFLAGS=["rc"], - SIZEPROGREGEXP=r"^(?:\.text|\.data|\.bootloader)\s+([0-9]+).*", + SIZEPROGREGEXP=r"^(?:\.text|\.data|\.rodata|\.bootloader)\s+([0-9]+).*", SIZEDATAREGEXP=r"^(?:\.data|\.bss|\.noinit)\s+([0-9]+).* ", SIZEEEPROMREGEXP=r"^(?:\.eeprom)\s+([0-9]+).*", SIZECHECKCMD="$SIZETOOL -A -d $SOURCES", diff --git a/platform.json b/platform.json index e32df63..fec0788 100644 --- a/platform.json +++ b/platform.json @@ -12,7 +12,7 @@ "type": "git", "url": "https://github.com/platformio/platform-atmelmegaavr.git" }, - "version": "1.0.0", + "version": "1.1.0", "packageRepositories": [ "https://dl.bintray.com/platformio/dl-packages/manifest.json", "http://dl.platformio.org/packages/manifest.json" @@ -31,7 +31,7 @@ "framework-arduino-megaavr": { "type": "framework", "optional": true, - "version": "~1.8.5" + "version": "~1.8.6" }, "tool-avrdude-megaavr": { "type": "uploader",