try to trigger mynewt example
This commit is contained in:
8
.github/workflows/build.yml
vendored
8
.github/workflows/build.yml
vendored
@@ -52,3 +52,11 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: python3 tools/build_all.py ${{ matrix.example }}
|
run: python3 tools/build_all.py ${{ matrix.example }}
|
||||||
|
|
||||||
|
trigger-mynewt:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: build
|
||||||
|
steps:
|
||||||
|
- name: Trigger mynewt-tinyusb-example
|
||||||
|
- run: curl -XPOST -u "hathach:${{secrets.MYNEWT_EXAMPLE_TOKEN}}" -H "Accept: application/vnd.github.everest-preview+json" -H "Content-Type: application/json" https://api.github.com/repos/hathach/mynewt-tinyusb-example/dispatches --data '{"event_type": "build_application"}'
|
||||||
|
|
||||||
|
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||

|

|
||||||
|
|
||||||
[](https://travis-ci.org/hathach/tinyusb) [](https://opensource.org/licenses/MIT) [](https://scan.coverity.com/projects/tinyusb)
|
[](https://github.com/hathach/tinyusb/actions) [](https://opensource.org/licenses/MIT) [](https://scan.coverity.com/projects/tinyusb)
|
||||||
|
|
||||||
TinyUSB is an open-source cross-platform USB Host/Device stack for embedded system, designed to be memory-safe with no dynamic allocation and thread-safe with all interrupt events are deferred then handled in the non-ISR task function.
|
TinyUSB is an open-source cross-platform USB Host/Device stack for embedded system, designed to be memory-safe with no dynamic allocation and thread-safe with all interrupt events are deferred then handled in the non-ISR task function.
|
||||||
|
|
||||||
|
@@ -4,10 +4,6 @@ import sys
|
|||||||
import subprocess
|
import subprocess
|
||||||
import time
|
import time
|
||||||
|
|
||||||
travis = False
|
|
||||||
if "TRAVIS" in os.environ and os.environ["TRAVIS"] == "true":
|
|
||||||
travis = True
|
|
||||||
|
|
||||||
success_count = 0
|
success_count = 0
|
||||||
fail_count = 0
|
fail_count = 0
|
||||||
exit_status = 0
|
exit_status = 0
|
||||||
@@ -59,16 +55,10 @@ for example in all_examples:
|
|||||||
success = "\033[31mfailed\033[0m "
|
success = "\033[31mfailed\033[0m "
|
||||||
fail_count += 1
|
fail_count += 1
|
||||||
|
|
||||||
if travis:
|
|
||||||
print('travis_fold:start:build-{}-{}\\r'.format(example, board))
|
|
||||||
|
|
||||||
print((build_format + '| {:.2f}s |').format(example, board, success, build_duration))
|
print((build_format + '| {:.2f}s |').format(example, board, success, build_duration))
|
||||||
if build_result.returncode != 0:
|
if build_result.returncode != 0:
|
||||||
print(build_result.stdout.decode("utf-8"))
|
print(build_result.stdout.decode("utf-8"))
|
||||||
|
|
||||||
if travis:
|
|
||||||
print('travis_fold:end:build-{}-{}\\r'.format(example, board))
|
|
||||||
|
|
||||||
# FreeRTOS example
|
# FreeRTOS example
|
||||||
# example = 'cdc_msc_hid_freertos'
|
# example = 'cdc_msc_hid_freertos'
|
||||||
# board = 'pca10056'
|
# board = 'pca10056'
|
||||||
|
Reference in New Issue
Block a user