generated from amazon-archives/__template_MIT-0
-
Notifications
You must be signed in to change notification settings - Fork 84
29 lines (26 loc) · 1018 Bytes
/
release.yml
File metadata and controls
29 lines (26 loc) · 1018 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
name: Release automation
permissions:
contents: write
pull-requests: write
on:
workflow_dispatch:
inputs:
version_number:
description: 'Release Version Number (Eg, v1.0.0)'
required: true
branch:
description: 'Branch to release from'
required: false
default: 'main'
jobs:
release:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Release
uses: FreeRTOS/CI-CD-Github-Actions/release@main
with:
version_number: ${{ github.event.inputs.version_number }}
branch: ${{ github.event.inputs.branch }}
github_token: ${{ secrets.GITHUB_TOKEN }}
run_test_command: 'sudo apt-get install -y lcov && rm -rf ../build && cmake -S ./test -B ../build -G "Unix Makefiles" -DCMAKE_BUILD_TYPE=Debug -DBUILD_CLONE_SUBMODULES=ON -DUNITTEST=1 -DCOV_ANALYSIS=1 -DCMAKE_C_FLAGS="--coverage -Wall -Wextra -DNDEBUG" && make -C ../build all && cd ../build && ctest -E system --output-on-failure'