Skip to content

Commit

Permalink
Merge remote-tracking branch 'remotes/tinyusb/master' into rx_fb
Browse files Browse the repository at this point in the history
  • Loading branch information
HiFiPhile committed May 9, 2024
2 parents fc7647f + 63e64f3 commit d4c9a0a
Show file tree
Hide file tree
Showing 62 changed files with 1,470 additions and 882 deletions.
30 changes: 30 additions & 0 deletions .github/actions/prepare_build/action.yml
@@ -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
31 changes: 31 additions & 0 deletions .github/actions/setup_toolchain/action.yml
@@ -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 }}
29 changes: 29 additions & 0 deletions .github/actions/setup_toolchain/download/action.yml
@@ -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
70 changes: 0 additions & 70 deletions .github/workflows/build_aarch64.yml

This file was deleted.

57 changes: 0 additions & 57 deletions .github/workflows/build_arm.yml

This file was deleted.

0 comments on commit d4c9a0a

Please sign in to comment.