Merge pull request #13 from ericwol-msft/SECURITY.md-update #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: generate_cmsis_packs | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.9", "3.10"] | |
steps: | |
- name: Checkout repo with submodules | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'recursive' | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Setup environment and install tools | |
run: | | |
sudo apt-get update | |
sudo apt-get install p7zip-full curl libxml2-utils unzip | |
mkdir -p $HOME/Arm/Packs/ARM/CMSIS/5.9.0 | |
wget https://github.com/ARM-software/CMSIS_5/releases/download/5.9.0/ARM.CMSIS.5.9.0.pack | |
unzip -q ARM.CMSIS.5.9.0.pack -d $HOME/Arm/Packs/ARM/CMSIS/5.9.0 | |
rm ARM.CMSIS.5.9.0.pack | |
- name: Generate cmsis-packs | |
run: | | |
export CMSIS_PACK_ROOT=$HOME/Arm/Packs | |
export PATH=$PATH:$HOME/Arm/Packs/ARM/CMSIS/5.9.0/CMSIS/Utilities/Linux64 | |
python3 scripts/generate.py -f |