mirror of
https://github.com/hathach/tinyusb.git
synced 2025-05-09 07:11:16 +08:00
try build zephyr with ci
This commit is contained in:
parent
9f45e25b1c
commit
201b9707b9
27
.github/workflows/build.yml
vendored
27
.github/workflows/build.yml
vendored
@ -59,7 +59,7 @@ jobs:
|
|||||||
toolchain:
|
toolchain:
|
||||||
# - 'arm-clang' is built by circle-ci in PR
|
# - 'arm-clang' is built by circle-ci in PR
|
||||||
- 'aarch64-gcc'
|
- 'aarch64-gcc'
|
||||||
- 'arm-gcc'
|
# - 'arm-gcc'
|
||||||
- 'msp430-gcc'
|
- 'msp430-gcc'
|
||||||
- 'riscv-gcc'
|
- 'riscv-gcc'
|
||||||
with:
|
with:
|
||||||
@ -72,7 +72,7 @@ jobs:
|
|||||||
# Build Make (built by circle-ci in PR, only build on push here)
|
# Build Make (built by circle-ci in PR, only build on push here)
|
||||||
# ---------------------------------------
|
# ---------------------------------------
|
||||||
make:
|
make:
|
||||||
if: github.event_name == 'push'
|
if: github.event_name == 'push' && false
|
||||||
needs: set-matrix
|
needs: set-matrix
|
||||||
uses: ./.github/workflows/build_util.yml
|
uses: ./.github/workflows/build_util.yml
|
||||||
strategy:
|
strategy:
|
||||||
@ -113,7 +113,7 @@ jobs:
|
|||||||
# Build IAR on HFP self-hosted
|
# Build IAR on HFP self-hosted
|
||||||
# ---------------------------------------
|
# ---------------------------------------
|
||||||
arm-iar:
|
arm-iar:
|
||||||
if: github.repository_owner == 'hathach' && github.event_name == 'push'
|
if: github.repository_owner == 'hathach' && github.event_name == 'push' && false
|
||||||
needs: set-matrix
|
needs: set-matrix
|
||||||
runs-on: [self-hosted, Linux, X64, hifiphile]
|
runs-on: [self-hosted, Linux, X64, hifiphile]
|
||||||
env:
|
env:
|
||||||
@ -137,3 +137,24 @@ jobs:
|
|||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: python3 tools/build.py --one-per-family --toolchain iar $BUILD_ARGS
|
run: python3 tools/build.py --one-per-family --toolchain iar $BUILD_ARGS
|
||||||
|
|
||||||
|
# ---------------------------------------
|
||||||
|
# Zephyr
|
||||||
|
# ---------------------------------------
|
||||||
|
zephyr:
|
||||||
|
if: github.event_name == 'push'
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout TinyUSB
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
|
- name: Setup Zephyr project
|
||||||
|
uses: zephyrproject-rtos/action-zephyr-setup@v1
|
||||||
|
with:
|
||||||
|
app-path: examples
|
||||||
|
toolchains: arm-zephyr-eabi
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
west build -b pca10056 examples/device/cdc_msc
|
||||||
|
west build -b pca10056 examples/device/msc_dual_lun
|
||||||
|
@ -1,6 +0,0 @@
|
|||||||
[manifest]
|
|
||||||
path = examples
|
|
||||||
file = west.yml
|
|
||||||
|
|
||||||
[zephyr]
|
|
||||||
base = lib/zephyr
|
|
@ -6,7 +6,7 @@ manifest:
|
|||||||
- name: zephyr
|
- name: zephyr
|
||||||
remote: zephyrproject-rtos
|
remote: zephyrproject-rtos
|
||||||
revision: main
|
revision: main
|
||||||
path: lib/zephyr
|
path: zephyr
|
||||||
import: true
|
import: true
|
||||||
self:
|
self:
|
||||||
path: .
|
path: .
|
||||||
|
@ -75,7 +75,7 @@ endif()
|
|||||||
|
|
||||||
if (BUILD_ZEPHYR)
|
if (BUILD_ZEPHYR)
|
||||||
set(BOARD_ROOT ${TOP}/hw/bsp/${FAMILY})
|
set(BOARD_ROOT ${TOP}/hw/bsp/${FAMILY})
|
||||||
find_package(Zephyr REQUIRED HINTS ${TOP}/lib/zephyr)
|
find_package(Zephyr REQUIRED HINTS ${TOP}/zephyr)
|
||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
#-------------------------------------------------------------
|
#-------------------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user