Squashed changes #1
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: ci | |
env: | |
TERM: xterm # Makes tput work in actions output | |
# Controls when the action will run. Triggers the workflow on push or pull request | |
# events but only for the master branch | |
on: | |
push: | |
branches-ignore: [ staging.tmp, trying.tmp ] # Run CI for all branches except bors tmp branches | |
pull_request: # Run CI for PRs on any branch | |
jobs: | |
ci-format: | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
# The type of runner that the job will run on | |
runs-on: ${{ matrix.os }} | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: false # LVGL makefile manually installs the submodule | |
- uses: fiam/arm-none-eabi-gcc@v1 | |
with: | |
release: '10-2020-q4' # The arm-none-eabi-gcc release to use. | |
- name: setup-riscv-toolchain | |
run: | | |
pushd $HOME; wget http://cs.virginia.edu/~bjc8c/archive/gcc-riscv64-unknown-elf-8.3.0-ubuntu.zip; unzip gcc-riscv64-unknown-elf-8.3.0-ubuntu.zip; echo "$HOME/gcc-riscv64-unknown-elf-8.3.0-ubuntu/bin" >> $GITHUB_PATH; popd | |
- name: ci-format | |
run: pushd examples; ./format_all.sh || exit; popd | |
ci-build: | |
strategy: | |
matrix: | |
os: [ubuntu-20.04] | |
# The type of runner that the job will run on | |
runs-on: ${{ matrix.os }} | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
submodules: recursive | |
- uses: fiam/arm-none-eabi-gcc@v1 | |
with: | |
release: '10-2020-q4' # The arm-none-eabi-gcc release to use. | |
- name: setup-riscv-toolchain | |
run: | | |
pushd $HOME; wget http://cs.virginia.edu/~bjc8c/archive/gcc-riscv64-unknown-elf-8.3.0-ubuntu.zip; unzip gcc-riscv64-unknown-elf-8.3.0-ubuntu.zip; echo "$HOME/gcc-riscv64-unknown-elf-8.3.0-ubuntu/bin" >> $GITHUB_PATH; popd | |
- name: ci-build | |
run: pushd examples; RISCV=1 ./build_all.sh || exit; popd | |
- name: ci-debug-build | |
run: pushd examples/blink; make debug RAM_START=0x20004000 FLASH_INIT=0x30051 || exit; popd |