Skip to content

Commit f4d4f2d

Browse files
committed
Merge remote-tracking branch 'remotes/tinyusb/master' into rx_fb
2 parents fc7647f + 63e64f3 commit f4d4f2d

Some content is hidden

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

61 files changed

+1461
-882
lines changed
+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Prepare to build
2+
3+
inputs:
4+
family:
5+
required: true
6+
type: string
7+
8+
runs:
9+
using: "composite"
10+
steps:
11+
- name: Setup Python
12+
uses: actions/setup-python@v5
13+
with:
14+
python-version: '3.x'
15+
16+
- name: Checkout pico-sdk for rp2040
17+
if: contains(inputs.family, 'rp2040')
18+
uses: actions/checkout@v4
19+
with:
20+
repository: raspberrypi/pico-sdk
21+
ref: develop
22+
path: pico-sdk
23+
24+
- name: Get Dependencies
25+
run: |
26+
sudo apt install -y ninja-build
27+
pip install click
28+
python3 tools/get_deps.py ${{ inputs.family }}
29+
echo >> $GITHUB_ENV "PICO_SDK_PATH=$GITHUB_WORKSPACE/pico-sdk"
30+
shell: bash
+31
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Setup Toolchain
2+
3+
inputs:
4+
toolchain:
5+
required: true
6+
type: string
7+
toolchain_url:
8+
required: false
9+
type: string
10+
11+
runs:
12+
using: "composite"
13+
steps:
14+
- name: Install ARM GCC
15+
if: inputs.toolchain == 'arm-gcc'
16+
uses: carlosperate/arm-none-eabi-gcc-action@v1
17+
with:
18+
release: '12.3.Rel1'
19+
20+
- name: Pull ESP-IDF docker
21+
if: inputs.toolchain == 'esp-idf'
22+
run: docker pull espressif/idf:latest
23+
shell: bash
24+
25+
- name: Download Toolchain
26+
if: >-
27+
inputs.toolchain != 'arm-gcc' &&
28+
inputs.toolchain != 'esp-idf'
29+
uses: ./.github/actions/setup_toolchain/download
30+
with:
31+
toolchain_url: ${{ inputs.toolchain_url }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Download Toolchain
2+
3+
inputs:
4+
toolchain_url:
5+
required: true
6+
type: string
7+
8+
runs:
9+
using: "composite"
10+
steps:
11+
- name: Cache Toolchain
12+
uses: actions/cache@v4
13+
id: cache-toolchain
14+
with:
15+
path: ~/cache/toolchain
16+
key: ${{ runner.os }}-${{ inputs.toolchain_url }}
17+
18+
- name: Install Toolchain
19+
if: steps.cache-toolchain.outputs.cache-hit != 'true'
20+
run: |
21+
mkdir -p ~/cache/toolchain
22+
wget --progress=dot:mega ${{ inputs.toolchain_url }} -O toolchain.tar.gz
23+
tar -C ~/cache/toolchain -xaf toolchain.tar.gz
24+
shell: bash
25+
26+
- name: Set Toolchain Path
27+
run: |
28+
echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
29+
shell: bash

.github/workflows/build_aarch64.yml

-70
This file was deleted.

.github/workflows/build_arm.yml

-57
This file was deleted.

0 commit comments

Comments
 (0)