@@ -3,10 +3,11 @@ name: Build Python Tools
3
3
on :
4
4
pull_request :
5
5
paths :
6
- - ' tools/get.py'
7
- - ' tools/espota.py'
8
- - ' tools/gen_esp32part.py'
9
- - ' tools/gen_insights_package.py'
6
+ - ' .github/workflows/build_py_tools.yml'
7
+ - ' tools/get.py'
8
+ - ' tools/espota.py'
9
+ - ' tools/gen_esp32part.py'
10
+ - ' tools/gen_insights_package.py'
10
11
11
12
jobs :
12
13
find-changed-tools :
21
22
with :
22
23
fetch-depth : 2
23
24
ref : ${{ github.event.pull_request.head.ref }}
25
+
26
+ - name : Check if checkout failed
27
+ if : failure()
28
+ run : |
29
+ echo "Checkout failed."
30
+ echo "Make sure you are using a branch inside the repository and not a fork."
31
+
24
32
- name : Verify Python Tools Changed
25
33
uses : tj-actions/changed-files@v41
26
34
id : verify-changed-files
47
55
strategy :
48
56
fail-fast : false
49
57
matrix :
50
- os : [windows-latest, macos-latest, ubuntu-20.04, ARM, ARM64 ]
58
+ os : [windows-latest, macos-latest, ubuntu-20.04, ARM]
51
59
include :
52
60
- os : windows-latest
53
61
TARGET : win64
63
71
CONTAINER : python:3.8-bullseye
64
72
TARGET : arm
65
73
SEPARATOR : ' :'
66
- - os : ARM64
67
- CONTAINER : python:3.8-bullseye
68
- TARGET : arm64
69
- SEPARATOR : ' :'
70
74
container : ${{ matrix.CONTAINER }} # use python container on ARM
71
75
env :
72
76
DISTPATH : pytools-${{ matrix.TARGET }}
93
97
ref : ${{ github.event.pull_request.head.ref }}
94
98
- name : Set up Python 3.8
95
99
# Skip setting python on ARM because of missing compatibility: https://github.com/actions/setup-python/issues/108
96
- if : matrix.os != 'ARM' && matrix.os != 'ARM64'
100
+ if : matrix.os != 'ARM'
97
101
uses : actions/setup-python@master
98
102
with :
99
103
python-version : 3.8
@@ -108,7 +112,7 @@ jobs:
108
112
pyinstaller --distpath ./${{ env.DISTPATH }} -F --icon=.github/pytools/espressif.ico tools/$tool.py
109
113
done
110
114
- name : Sign binaries
111
- if : matrix.os == 'windows-latest' && env.CERTIFICATE != '' && env.CERTIFICATE_PASSWORD != ''
115
+ if : matrix.os == 'windows-latest'
112
116
env :
113
117
CERTIFICATE : ${{ secrets.CERTIFICATE }}
114
118
CERTIFICATE_PASSWORD : ${{ secrets.CERTIFICATE_PASSWORD }}
0 commit comments