Skip to content

Commit 2179dd1

Browse files
committed
Added an action to grab the .a files from a release
1 parent 42b6c39 commit 2179dd1

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/workflows/onRelease.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Static Analysis Report
2+
3+
on:
4+
workflow_dispatch:
5+
release:
6+
types: [created]
7+
8+
jobs:
9+
cppcheck:
10+
runs-on: ubuntu-20.04
11+
name: Build against Ubuntu-20.04 for release assets
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Install CppCheck
15+
run: |
16+
sudo apt-get update
17+
sudo apt-get install -y cppcheck
18+
19+
- name: Setup arm-none-eabi-gcc
20+
uses: carlosperate/arm-none-eabi-gcc-action@v1
21+
with:
22+
release: latest
23+
24+
- name: Setup CMake
25+
uses: jwlawson/actions-setup-cmake@v1
26+
27+
- name: Build default project using build.py
28+
run: python build.py
29+
30+
- uses: xresloader/upload-to-github-release@v1
31+
env:
32+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
33+
with:
34+
file: "build/*.a"
35+
update_latest_release: true
36+

0 commit comments

Comments
 (0)