2023-07-25 20:01:42 +08:00
|
|
|
name: C/C++ CI
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [ "master" ]
|
|
|
|
pull_request:
|
|
|
|
branches: [ "master" ]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: carlosperate/arm-none-eabi-gcc-action@v1
|
|
|
|
- run: arm-none-eabi-gcc --version
|
|
|
|
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: make
|
2023-07-26 14:31:49 +08:00
|
|
|
run: make -j12
|
|
|
|
|
|
|
|
- uses: seanmiddleditch/gha-setup-ninja@master
|
|
|
|
- name: ninja
|
|
|
|
run: cd build && cmake -G Ninja .. && ninja
|
|
|
|
|