-
Notifications
You must be signed in to change notification settings - Fork 299
53 lines (45 loc) · 1.09 KB
/
validate-hsm-wrapper.yml
File metadata and controls
53 lines (45 loc) · 1.09 KB
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
45
46
47
48
49
50
51
52
53
name: Raspberry Pi USB Boot tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
workflow_dispatch:
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
submodules: true
submodule-recursive: true
submodule-shallow: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y \
build-essential \
git \
tar \
libusb-1.0-0-dev \
pkg-config
- name: Set up Python virtual environment
run: |
python3 -m venv .venv
source .venv/bin/activate
python3 -m pip install --upgrade pip
pip3 install pycryptodomex
- name: Build rpiboot
run: |
make
- name: Run HSM Wrapper unit test
run: |
source .venv/bin/activate
cd test
chmod +x validate-hsm-wrapper.sh
./validate-hsm-wrapper.sh