mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
36 lines
1.0 KiB
YAML
36 lines
1.0 KiB
YAML
name: TinyUSB CI
|
|
|
|
on: [pull_request, push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Python
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.5
|
|
- name: Node.js
|
|
uses: actions/setup-node@v1.1.0
|
|
- name: Toolchains
|
|
run: |
|
|
# Install XPM
|
|
npm install --global xpm
|
|
# Install ARM GCC
|
|
xpm install --global @xpack-dev-tools/arm-none-eabi-gcc@latest
|
|
export PATH=$PATH:`echo $HOME/opt/xPacks/@xpack-dev-tools/arm-none-embed-gcc/*/.content/bin`
|
|
# Install RISCV GCC
|
|
xpm install --global @xpack-dev-tools/riscv-none-embed-gcc@latest
|
|
export PATH=$PATH:`echo $HOME/opt/xPacks/@xpack-dev-tools/riscv-none-embed-gcc/*/.content/bin`
|
|
arm-none-eabi-gcc --version
|
|
riscv-none-embed-gcc --version
|
|
- name: Versions
|
|
run: |
|
|
arm-none-eabi-gcc --version
|
|
riscv-none-embed-gcc --version
|
|
- name: Git clone
|
|
uses: actions/checkout@v1
|
|
with:
|
|
submodules: true
|