-
Notifications
You must be signed in to change notification settings - Fork 3
44 lines (42 loc) · 1.09 KB
/
cmsis-pack.yml
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
37
38
39
40
41
42
43
44
name: "Build CMSIS pack"
on:
push:
paths:
- "src/**.c"
- "inc/**.h"
- "support/project.toml"
- ".github/workflows/cmsis-pack.yml"
pull_request:
branches: [master]
paths:
- "src/**.c"
- "inc/**.h"
- "support/project.toml"
- ".github/workflows/cmsis-pack.yml"
workflow_dispatch:
inputs:
logLevel:
description: "Log level"
required: true
default: "warning"
jobs:
pack-file:
runs-on: "ubuntu-latest"
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: true
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f zipack/requirements.txt ]; then pip install -r zipack/requirements.txt; fi
- name: Generate CMSIS pack
run: |
python zipack --project=./support/project.toml cmsis-pack
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: cmsis-pack-artifact
path: target_package/*.pack