@@ -3,10 +3,11 @@ name: Build Python Tools
33on :
44 pull_request :
55 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'
1011
1112jobs :
1213 find-changed-tools :
2122 with :
2223 fetch-depth : 2
2324 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+
2432 - name : Verify Python Tools Changed
2533 uses : tj-actions/changed-files@v41
2634 id : verify-changed-files
4755 strategy :
4856 fail-fast : false
4957 matrix :
50- os : [windows-latest, macos-latest, ubuntu-20.04, ARM, ARM64 ]
58+ os : [windows-latest, macos-latest, ubuntu-20.04, ARM]
5159 include :
5260 - os : windows-latest
5361 TARGET : win64
6371 CONTAINER : python:3.8-bullseye
6472 TARGET : arm
6573 SEPARATOR : ' :'
66- - os : ARM64
67- CONTAINER : python:3.8-bullseye
68- TARGET : arm64
69- SEPARATOR : ' :'
7074 container : ${{ matrix.CONTAINER }} # use python container on ARM
7175 env :
7276 DISTPATH : pytools-${{ matrix.TARGET }}
9397 ref : ${{ github.event.pull_request.head.ref }}
9498 - name : Set up Python 3.8
9599 # 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'
97101 uses : actions/setup-python@master
98102 with :
99103 python-version : 3.8
@@ -108,7 +112,7 @@ jobs:
108112 pyinstaller --distpath ./${{ env.DISTPATH }} -F --icon=.github/pytools/espressif.ico tools/$tool.py
109113 done
110114 - name : Sign binaries
111- if : matrix.os == 'windows-latest' && env.CERTIFICATE != '' && env.CERTIFICATE_PASSWORD != ''
115+ if : matrix.os == 'windows-latest'
112116 env :
113117 CERTIFICATE : ${{ secrets.CERTIFICATE }}
114118 CERTIFICATE_PASSWORD : ${{ secrets.CERTIFICATE_PASSWORD }}
0 commit comments