2021-05-26 12:12:26 +02:00
|
|
|
name: Build Renesas
|
|
|
|
|
|
|
|
on:
|
2023-05-25 11:53:32 +02:00
|
|
|
workflow_dispatch:
|
2021-05-26 12:12:26 +02:00
|
|
|
push:
|
2022-12-08 03:44:26 +01:00
|
|
|
paths:
|
2022-12-08 05:47:01 +01:00
|
|
|
- 'src/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'lib/**'
|
|
|
|
- 'hw/**'
|
2023-12-18 14:07:17 +01:00
|
|
|
- 'tools/get_deps.py'
|
2023-02-01 10:36:39 +01:00
|
|
|
- '.github/workflows/build_renesas.yml'
|
2022-12-08 03:44:26 +01:00
|
|
|
pull_request:
|
|
|
|
branches: [ master ]
|
|
|
|
paths:
|
2022-12-08 05:47:01 +01:00
|
|
|
- 'src/**'
|
|
|
|
- 'examples/**'
|
|
|
|
- 'lib/**'
|
|
|
|
- 'hw/**'
|
2023-12-18 14:07:17 +01:00
|
|
|
- 'tools/get_deps.py'
|
2023-02-01 10:36:39 +01:00
|
|
|
- '.github/workflows/build_renesas.yml'
|
2021-05-26 12:12:26 +02:00
|
|
|
|
2022-12-04 15:08:47 +01:00
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2021-05-26 12:12:26 +02:00
|
|
|
jobs:
|
|
|
|
build-rx:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
fail-fast: false
|
|
|
|
matrix:
|
|
|
|
family:
|
|
|
|
# Alphabetical order
|
2021-06-28 07:53:53 +02:00
|
|
|
- 'rx'
|
2021-05-26 12:12:26 +02:00
|
|
|
steps:
|
|
|
|
- name: Setup Python
|
2024-01-25 13:13:11 +01:00
|
|
|
uses: actions/setup-python@v5
|
2022-11-06 16:06:22 +01:00
|
|
|
with:
|
|
|
|
python-version: '3.x'
|
2021-05-26 12:12:26 +02:00
|
|
|
|
|
|
|
- name: Checkout TinyUSB
|
2023-12-18 14:07:17 +01:00
|
|
|
uses: actions/checkout@v4
|
2021-10-12 19:57:45 +02:00
|
|
|
|
2021-05-26 12:12:26 +02:00
|
|
|
- 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
|
2022-11-16 05:11:26 +01:00
|
|
|
uses: actions/cache@v3
|
2021-05-26 12:12:26 +02:00
|
|
|
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`
|
|
|
|
|
2022-07-01 12:23:14 +02:00
|
|
|
- name: Get Dependencies
|
2023-05-26 10:25:55 +02:00
|
|
|
run: python3 tools/get_deps.py ${{ matrix.family }}
|
2022-07-01 12:23:14 +02:00
|
|
|
|
2021-05-26 12:12:26 +02:00
|
|
|
- name: Build
|
2023-11-23 05:46:39 +01:00
|
|
|
run: python3 tools/build_make.py ${{ matrix.family }}
|