Files
HC32F005/.github/workflows/src.yml
T
2021-05-22 11:32:20 +08:00

33 lines
790 B
YAML

name: src
on:
push:
paths:
- 'src/**'
- '**.yml'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
submodules: "recursive"
fetch-depth: 1
- name: Install gcc
run: |
wget https://developer.arm.com/-/media/Files/downloads/gnu-rm/10-2020q4/gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
tar -xf gcc-arm-none-eabi-10-2020-q4-major-x86_64-linux.tar.bz2
echo `pwd`/gcc-arm-none-eabi-10-2020-q4-major/bin >> $GITHUB_PATH
- name: Build template
working-directory: src
run: |
make -C gcc_template
- uses: actions/upload-artifact@v2
with:
name: gcc_template
path: src/gcc_template/build