-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'remotes/tinyusb/master' into rx_fb
- Loading branch information
Showing
61 changed files
with
1,461 additions
and
882 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Prepare to build | ||
|
||
inputs: | ||
family: | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Setup Python | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Checkout pico-sdk for rp2040 | ||
if: contains(inputs.family, 'rp2040') | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: raspberrypi/pico-sdk | ||
ref: develop | ||
path: pico-sdk | ||
|
||
- name: Get Dependencies | ||
run: | | ||
sudo apt install -y ninja-build | ||
pip install click | ||
python3 tools/get_deps.py ${{ inputs.family }} | ||
echo >> $GITHUB_ENV "PICO_SDK_PATH=$GITHUB_WORKSPACE/pico-sdk" | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: Setup Toolchain | ||
|
||
inputs: | ||
toolchain: | ||
required: true | ||
type: string | ||
toolchain_url: | ||
required: false | ||
type: string | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Install ARM GCC | ||
if: inputs.toolchain == 'arm-gcc' | ||
uses: carlosperate/arm-none-eabi-gcc-action@v1 | ||
with: | ||
release: '12.3.Rel1' | ||
|
||
- name: Pull ESP-IDF docker | ||
if: inputs.toolchain == 'esp-idf' | ||
run: docker pull espressif/idf:latest | ||
shell: bash | ||
|
||
- name: Download Toolchain | ||
if: >- | ||
inputs.toolchain != 'arm-gcc' && | ||
inputs.toolchain != 'esp-idf' | ||
uses: ./.github/actions/setup_toolchain/download | ||
with: | ||
toolchain_url: ${{ inputs.toolchain_url }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Download Toolchain | ||
|
||
inputs: | ||
toolchain_url: | ||
required: true | ||
type: string | ||
|
||
runs: | ||
using: "composite" | ||
steps: | ||
- name: Cache Toolchain | ||
uses: actions/cache@v4 | ||
id: cache-toolchain | ||
with: | ||
path: ~/cache/toolchain | ||
key: ${{ runner.os }}-${{ inputs.toolchain_url }} | ||
|
||
- name: Install Toolchain | ||
if: steps.cache-toolchain.outputs.cache-hit != 'true' | ||
run: | | ||
mkdir -p ~/cache/toolchain | ||
wget --progress=dot:mega ${{ inputs.toolchain_url }} -O toolchain.tar.gz | ||
tar -C ~/cache/toolchain -xaf toolchain.tar.gz | ||
shell: bash | ||
|
||
- name: Set Toolchain Path | ||
run: | | ||
echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin` | ||
shell: bash |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.