Skip to content

Commit

Permalink
Add GitHub action to generate pack
Browse files Browse the repository at this point in the history
  • Loading branch information
VladimirUmek committed Oct 18, 2024
1 parent 0888e6c commit 57a9f1a
Showing 1 changed file with 40 additions and 0 deletions.
40 changes: 40 additions & 0 deletions .github/workflows/gen_pack.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Build pack
on:
workflow_dispatch:
pull_request:
push:
branches: [main]
release:
types: [published]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
pack:
name: Generate pack
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Fetch tags
if: github.event_name == 'release'
run: |
git fetch --tags --force
- uses: Open-CMSIS-Pack/gen-pack-action@main
with:
doxygen-version: none
packchk-version: 1.4.1
gen-pack-script: ./gen_pack.sh
gen-pack-output: ./output

- name: Upload pack
uses: actions/upload-artifact@v4
with:
name: Generated CMSIS pack
path: ./output/*.pack
retention-days: 3

0 comments on commit 57a9f1a

Please sign in to comment.