mirror of
https://github.com/hathach/tinyusb.git
synced 2025-02-21 21:41:09 +00:00
use action gcc
This commit is contained in:
parent
8fe9022a6e
commit
1e00fe78c7
48
.github/workflows/build_arm.yml
vendored
48
.github/workflows/build_arm.yml
vendored
@ -65,7 +65,7 @@ jobs:
|
|||||||
- 'xmc4000'
|
- 'xmc4000'
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v3
|
||||||
|
|
||||||
- name: Checkout TinyUSB
|
- name: Checkout TinyUSB
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -79,32 +79,17 @@ jobs:
|
|||||||
repository: hathach/linkermap
|
repository: hathach/linkermap
|
||||||
path: linkermap
|
path: linkermap
|
||||||
|
|
||||||
- name: Checkout pico-sdk
|
- name: Checkout pico-sdk for rp2040
|
||||||
if: matrix.family == 'rp2040'
|
if: matrix.family == 'rp2040'
|
||||||
run: |
|
run: |
|
||||||
git clone --depth 1 -b develop https://github.com/raspberrypi/pico-sdk ~/pico-sdk
|
git clone --depth 1 -b develop https://github.com/raspberrypi/pico-sdk ~/pico-sdk
|
||||||
echo >> $GITHUB_ENV PICO_SDK_PATH=~/pico-sdk
|
echo >> $GITHUB_ENV PICO_SDK_PATH=~/pico-sdk
|
||||||
git submodule update --init hw/mcu/raspberry_pi/Pico-PIO-USB
|
git submodule update --init hw/mcu/raspberry_pi/Pico-PIO-USB
|
||||||
|
|
||||||
- name: Set Toolchain URL
|
- name: Install ARM GCC
|
||||||
run: echo >> $GITHUB_ENV TOOLCHAIN_URL=https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v10.2.1-1.1/xpack-arm-none-eabi-gcc-10.2.1-1.1-linux-x64.tar.gz
|
uses: carlosperate/arm-none-eabi-gcc-action@v1
|
||||||
|
|
||||||
- name: Cache Toolchain
|
|
||||||
uses: actions/cache@v2
|
|
||||||
id: cache-toolchain
|
|
||||||
with:
|
with:
|
||||||
path: ~/cache/
|
release: '11.2-2022.02'
|
||||||
key: ${{ runner.os }}-21-03-04-${{ env.TOOLCHAIN_URL }}
|
|
||||||
|
|
||||||
- name: Install Toolchain
|
|
||||||
if: steps.cache-toolchain.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/cache/toolchain
|
|
||||||
wget --progress=dot:mega $TOOLCHAIN_URL -O toolchain.tar.gz
|
|
||||||
tar -C ~/cache/toolchain -xaf toolchain.tar.gz
|
|
||||||
|
|
||||||
- name: Set Toolchain Path
|
|
||||||
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: python3 tools/build_family.py ${{ matrix.family }}
|
run: python3 tools/build_family.py ${{ matrix.family }}
|
||||||
@ -135,7 +120,7 @@ jobs:
|
|||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Setup Python
|
- name: Setup Python
|
||||||
uses: actions/setup-python@v2
|
uses: actions/setup-python@v3
|
||||||
|
|
||||||
- name: Checkout TinyUSB
|
- name: Checkout TinyUSB
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
@ -143,25 +128,10 @@ jobs:
|
|||||||
- name: Checkout common submodules in lib
|
- name: Checkout common submodules in lib
|
||||||
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
|
run: git submodule update --init lib/FreeRTOS-Kernel lib/lwip
|
||||||
|
|
||||||
- name: Set Toolchain URL
|
- name: Install ARM GCC
|
||||||
run: echo >> $GITHUB_ENV TOOLCHAIN_URL=https://github.com/xpack-dev-tools/arm-none-eabi-gcc-xpack/releases/download/v10.2.1-1.1/xpack-arm-none-eabi-gcc-10.2.1-1.1-linux-x64.tar.gz
|
uses: carlosperate/arm-none-eabi-gcc-action@v1
|
||||||
|
|
||||||
- name: Cache Toolchain
|
|
||||||
uses: actions/cache@v2
|
|
||||||
id: cache-toolchain
|
|
||||||
with:
|
with:
|
||||||
path: ~/cache/
|
release: '11.2-2022.02'
|
||||||
key: ${{ runner.os }}-21-03-04-${{ env.TOOLCHAIN_URL }}
|
|
||||||
|
|
||||||
- name: Install Toolchain
|
|
||||||
if: steps.cache-toolchain.outputs.cache-hit != 'true'
|
|
||||||
run: |
|
|
||||||
mkdir -p ~/cache/toolchain
|
|
||||||
wget --progress=dot:mega $TOOLCHAIN_URL -O toolchain.tar.gz
|
|
||||||
tar -C ~/cache/toolchain -xaf toolchain.tar.gz
|
|
||||||
|
|
||||||
- name: Set Toolchain Path
|
|
||||||
run: echo >> $GITHUB_PATH `echo ~/cache/toolchain/*/bin`
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: python3 tools/build_board.py ${{ matrix.example }}
|
run: python3 tools/build_board.py ${{ matrix.example }}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user