File tree Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Expand file tree Collapse file tree 1 file changed +51
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Raspberry Pi USB Boot tests
2
+
3
+ on :
4
+ push :
5
+ branches : [ master ]
6
+ pull_request :
7
+ branches : [ master ]
8
+ workflow_dispatch :
9
+
10
+ jobs :
11
+ validate :
12
+ runs-on : ubuntu-latest
13
+
14
+ steps :
15
+ - uses : actions/checkout@v4
16
+ with :
17
+ fetch-depth : 0
18
+
19
+ - name : Set up Python
20
+ uses : actions/setup-python@v5
21
+ with :
22
+ python-version : ' 3.x'
23
+
24
+ - name : Install system dependencies
25
+ run : |
26
+ sudo apt-get update
27
+ sudo apt-get install -y \
28
+ build-essential \
29
+ git \
30
+ tar \
31
+ libusb-1.0-0-dev \
32
+ pkg-config
33
+
34
+ - name : Set up Python virtual environment
35
+ run : |
36
+ python3 -m venv .venv
37
+ source .venv/bin/activate
38
+ python3 -m pip install --upgrade pip
39
+ pip3 install pycryptodomex
40
+
41
+ - name : Build rpiboot
42
+ run : |
43
+ make
44
+
45
+ - name : Make validate script executable
46
+ run : chmod +x test/validate-hsm-wrapper.sh
47
+
48
+ - name : Run validation script
49
+ run : |
50
+ source .venv/bin/activate
51
+ ./test/validate-hsm-wrapper.sh
You can’t perform that action at this time.
0 commit comments