CI #177
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 | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
repository_dispatch: | |
schedule: | |
- cron: '0 0 1 * *' | |
jobs: | |
build: | |
name: build test | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v3 | |
- name: checkout submodules | |
run: git submodule update --init --remote --recursive | |
- name: install dependencies | |
run: | | |
sudo apt-get -y -qq update | |
sudo apt-get -y -qq install cmake ninja-build | |
- name: install arm-none-eabi-gcc | |
run: | | |
wget -q https://developer.arm.com/-/media/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz | |
tar -xf arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz | |
echo "${{github.workspace}}/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi/bin" >> $GITHUB_PATH | |
- name: check arm-none-eabi-gcc version | |
run: arm-none-eabi-gcc -v | |
- name: make test | |
run: | | |
cmake -S. -Bbuild -GNinja | |
cmake --build build -v | |
example: | |
name: example test | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout repository | |
uses: actions/checkout@v3 | |
- name: checkout submodules | |
run: git submodule update --init --remote --recursive | |
- name: install arm-none-eabi-gcc | |
run: | | |
wget -q https://developer.arm.com/-/media/Files/downloads/gnu/11.3.rel1/binrel/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz | |
tar -xf arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi.tar.xz | |
echo "${{github.workspace}}/arm-gnu-toolchain-11.3.rel1-x86_64-arm-none-eabi/bin" >> $GITHUB_PATH | |
- name: check arm-none-eabi-gcc version | |
run: arm-none-eabi-gcc -v | |
- name: make test | |
run: bash ./.example-test.sh |