-
Notifications
You must be signed in to change notification settings - Fork 14
37 lines (28 loc) · 905 Bytes
/
release.yml
File metadata and controls
37 lines (28 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: ReleaseBuildTest
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
env:
BUILD_TYPE: Release
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Install Arm GNU Toolchain (arm-none-eabi-gcc 2021.10)
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: '10.3-2021.10' # <-- The compiler release to use
- name: Install Ninja build system
run: |
sudo apt install ninja-build
- name: Checkout `master` branch
uses: actions/checkout@v3
with:
ref: 'master'
- name: Configure CMake
# Leave SDK_CLEAR_ENV to be unset to use the default compiler in this action
run: cmake -B $GITHUB_WORKSPACE/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -GNinja $GITHUB_WORKSPACE
- name: Build
run: cmake --build $GITHUB_WORKSPACE/build --config ${{env.BUILD_TYPE}}