Skip to content

Commit cd0ca48

Browse files
committed
Merge branch 'refs/heads/master' into fork/jay94ks/styluspen
2 parents 5c4e4b1 + 2a3025e commit cd0ca48

File tree

621 files changed

+3242
-24022
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

621 files changed

+3242
-24022
lines changed

.circleci/config2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ commands:
114114
name: Build
115115
command: |
116116
if [ << parameters.toolchain >> == esp-idf ]; then
117-
docker run --rm -v $PWD:/project -w /project espressif/idf:v5.3.1 python tools/build.py << parameters.family >>
117+
docker run --rm -v $PWD:/project -w /project espressif/idf:v5.3.2 python tools/build.py << parameters.family >>
118118
else
119119
# Toolchain option default is gcc
120120
if [ << parameters.toolchain >> == arm-clang ]; then

.github/actions/setup_toolchain/action.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@ inputs:
44
toolchain:
55
description: 'Toolchain name'
66
required: true
7-
toolchain_version:
8-
description: 'Toolchain version'
9-
required: false
107

118
outputs:
129
build_option:
@@ -27,7 +24,6 @@ runs:
2724
uses: ./.github/actions/setup_toolchain/espressif
2825
with:
2926
toolchain: ${{ inputs.toolchain }}
30-
toolchain_version: ${{ inputs.toolchain_version }}
3127

3228
- name: Get Toolchain URL
3329
if: >-

.github/actions/setup_toolchain/espressif/action.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ inputs:
66
required: true
77
toolchain_version:
88
description: 'Toolchain version'
9-
required: true
9+
required: false
10+
default: 'v5.3.2'
1011

1112
runs:
1213
using: "composite"
@@ -39,3 +40,9 @@ runs:
3940
du -sh $DOCKER_ESP_IDF
4041
docker load --input $DOCKER_ESP_IDF
4142
shell: bash
43+
44+
- name: Tag Local Image
45+
run: |
46+
docker tag espressif/idf:${{ inputs.toolchain_version }} espressif/idf:tinyusb
47+
docker images
48+
shell: bash

.github/workflows/build.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,14 +111,15 @@ jobs:
111111

112112
# ---------------------------------------
113113
# Build IAR on HFP self-hosted
114+
# Since IAR Token secret is not passed to forked PR, only build on PR from the same repo
114115
# ---------------------------------------
115116
arm-iar:
116117
if: github.repository_owner == 'hathach' && github.event_name == 'push'
117118
needs: set-matrix
118119
runs-on: [self-hosted, Linux, X64, hifiphile]
119120
env:
120121
BUILD_ARGS: ${{ join(fromJSON(needs.set-matrix.outputs.json)['arm-iar'], ' ') }}
121-
# IAR_LMS_BEARER_TOKEN: ${{ secrets.IAR_LMS_BEARER_TOKEN }}
122+
IAR_LMS_BEARER_TOKEN: ${{ secrets.IAR_LMS_BEARER_TOKEN }}
122123
steps:
123124
- name: Clean workspace
124125
run: |
@@ -137,3 +138,24 @@ jobs:
137138

138139
- name: Build
139140
run: python3 tools/build.py --one-per-family --toolchain iar $BUILD_ARGS
141+
142+
# ---------------------------------------
143+
# Zephyr
144+
# ---------------------------------------
145+
zephyr:
146+
if: github.event_name == 'push'
147+
runs-on: ubuntu-latest
148+
steps:
149+
- name: Checkout TinyUSB
150+
uses: actions/checkout@v4
151+
152+
- name: Setup Zephyr project
153+
uses: zephyrproject-rtos/action-zephyr-setup@v1
154+
with:
155+
app-path: examples
156+
toolchains: arm-zephyr-eabi
157+
158+
- name: Build
159+
run: |
160+
west build -b pca10056 -d examples/device/cdc_msc/build examples/device/cdc_msc -- -DRTOS=zephyr
161+
west build -b pca10056 -d examples/device/msc_dual_lun/build examples/device/msc_dual_lun -- -DRTOS=zephyr

.github/workflows/build_util.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ jobs:
4141
uses: ./.github/actions/setup_toolchain
4242
with:
4343
toolchain: ${{ inputs.toolchain }}
44-
toolchain_version: 'v5.3.1'
4544

4645
- name: Get Dependencies
4746
uses: ./.github/actions/get_deps
@@ -61,7 +60,7 @@ jobs:
6160
- name: Build
6261
run: |
6362
if [ "${{ inputs.toolchain }}" == "esp-idf" ]; then
64-
docker run --rm -v $PWD:/project -w /project espressif/idf:v5.3.1 python tools/build.py ${{ matrix.arg }}
63+
docker run --rm -v $PWD:/project -w /project espressif/idf:tinyusb python tools/build.py ${{ matrix.arg }}
6564
else
6665
python tools/build.py -s ${{ inputs.build-system }} ${{ steps.setup-toolchain.outputs.build_option }} ${{ steps.set-one-per-family.outputs.build_option }} ${{ matrix.arg }}
6766
fi

.github/workflows/hil_test.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,12 +90,13 @@ jobs:
9090
# ---------------------------------------
9191
# Hardware in the loop (HIL)
9292
# self-hosted by HFP, build with IAR toolchain, for attached hardware checkout test/hil/hfp.json
93+
# Since IAR Token secret is not passed to forked PR, only build on PR from the same repo
9394
# ---------------------------------------
9495
hil-hfp:
95-
if: github.repository_owner == 'hathach'
96+
if: github.repository_owner == 'hathach' && github.event.pull_request.head.repo.fork == false
9697
runs-on: [self-hosted, Linux, X64, hifiphile]
97-
#env:
98-
# IAR_LMS_BEARER_TOKEN: ${{ secrets.IAR_LMS_BEARER_TOKEN }}
98+
env:
99+
IAR_LMS_BEARER_TOKEN: ${{ secrets.IAR_LMS_BEARER_TOKEN }}
99100
steps:
100101
- name: Clean workspace
101102
run: |

.idea/cmake.xml

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)