summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhathach <[email protected]>2020-01-03 17:11:22 +0700
committerhathach <[email protected]>2020-01-03 17:11:22 +0700
commit019d1b09c5fcaa601af6e0a2aba882031bcbd3c7 (patch)
tree8cb1ce4350515183c51b4daf4851435bb98bff35
parent1bcf1217857fe5228669c01f8e78e5d411ee06a0 (diff)
try to trigger mynewt example
-rw-r--r--.github/workflows/build.yml8
-rw-r--r--README.md2
-rw-r--r--tools/build_all.py10
3 files changed, 9 insertions, 11 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 6e71351a9..fbbea9e15 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -52,3 +52,11 @@ jobs:
- name: Build
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"}'
+
diff --git a/README.md b/README.md
index eccb7627d..75d354004 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
![tinyUSB_240x100](https://user-images.githubusercontent.com/249515/62646655-f9393200-b978-11e9-9c53-484862f15503.png)
-[![Build Status](https://github.com/hathach/tinyusb/workflows/Build/badge.svg)](https://travis-ci.org/hathach/tinyusb) [![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT) [![Coverity](https://img.shields.io/coverity/scan/458.svg)](https://scan.coverity.com/projects/tinyusb)
+[![Build Status](https://github.com/hathach/tinyusb/workflows/Build/badge.svg)](https://github.com/hathach/tinyusb/actions) [![License](https://img.shields.io/badge/license-MIT-brightgreen.svg)](https://opensource.org/licenses/MIT) [![Coverity](https://img.shields.io/coverity/scan/458.svg)](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.
diff --git a/tools/build_all.py b/tools/build_all.py
index 2ea898f45..97294a9a3 100644
--- a/tools/build_all.py
+++ b/tools/build_all.py
@@ -4,10 +4,6 @@ import sys
import subprocess
import time
-travis = False
-if "TRAVIS" in os.environ and os.environ["TRAVIS"] == "true":
- travis = True
-
success_count = 0
fail_count = 0
exit_status = 0
@@ -59,16 +55,10 @@ for example in all_examples:
success = "\033[31mfailed\033[0m "
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))
if build_result.returncode != 0:
print(build_result.stdout.decode("utf-8"))
- if travis:
- print('travis_fold:end:build-{}-{}\\r'.format(example, board))
-
# FreeRTOS example
# example = 'cdc_msc_hid_freertos'
# board = 'pca10056'