Merge pull request #2648 from tannewt/esp32c2_h2 #3492
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
name: Build Renesas | |
on: | |
workflow_dispatch: | |
push: | |
paths: | |
- 'src/**' | |
- 'examples/**' | |
- 'lib/**' | |
- 'hw/**' | |
- 'tools/get_deps.py' | |
- '.github/workflows/build_renesas.yml' | |
pull_request: | |
branches: [ master ] | |
paths: | |
- 'src/**' | |
- 'examples/**' | |
- 'lib/**' | |
- 'hw/**' | |
- 'tools/get_deps.py' | |
- '.github/workflows/build_renesas.yml' | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
build-rx: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
family: | |
# Alphabetical order | |
- 'rx' | |
steps: | |
- name: Checkout TinyUSB | |
uses: actions/checkout@v4 | |
- name: Set Toolchain URL | |
run: echo >> $GITHUB_ENV TOOLCHAIN_URL=http://gcc-renesas.com/downloads/get.php?f=rx/8.3.0.202004-gnurx/gcc-8.3.0.202004-GNURX-ELF.run | |
- name: Cache Toolchain | |
uses: actions/cache@v4 | |
id: cache-toolchain | |
with: | |
path: ~/cache/ | |
key: ${{ runner.os }}-21-03-30-${{ env.TOOLCHAIN_URL }} | |
- name: Install Toolchain | |
if: steps.cache-toolchain.outputs.cache-hit != 'true' | |
run: | | |
mkdir -p ~/cache/toolchain/gnurx | |
wget --progress=dot:mega $TOOLCHAIN_URL -O toolchain.run | |
chmod +x toolchain.run | |
./toolchain.run -p ~/cache/toolchain/gnurx -y | |
- name: Set Toolchain Path | |
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin` | |
- name: Get Dependencies | |
run: | | |
python3 tools/get_deps.py ${{ matrix.family }} | |
- name: Build | |
run: python3 tools/build.py -s make ${{ matrix.family }} |