Skip to content

Commit

Permalink
Added an action to grab the .a files from a release
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnVidler committed Aug 22, 2023
1 parent 42b6c39 commit 2179dd1
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/onRelease.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Static Analysis Report

on:
workflow_dispatch:
release:
types: [created]

jobs:
cppcheck:
runs-on: ubuntu-20.04
name: Build against Ubuntu-20.04 for release assets
steps:
- uses: actions/checkout@v3
- name: Install CppCheck
run: |
sudo apt-get update
sudo apt-get install -y cppcheck
- name: Setup arm-none-eabi-gcc
uses: carlosperate/arm-none-eabi-gcc-action@v1
with:
release: latest

- name: Setup CMake
uses: jwlawson/actions-setup-cmake@v1

- name: Build default project using build.py
run: python build.py

- uses: xresloader/upload-to-github-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
file: "build/*.a"
update_latest_release: true

0 comments on commit 2179dd1

Please sign in to comment.