Skip to content

Commit 2f85a2c

Browse files
Build app archives for all python versions
* Builds app archives for python 3.7-3.11 for linux/mac/windows * Modifies app archive creation script to pass python version as variable * Publishes python 3.11 wheel * smoke test install and scan for all python versions in linux/mac/windows Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent cad392f commit 2f85a2c

File tree

4 files changed

+41
-34
lines changed

4 files changed

+41
-34
lines changed

.github/workflows/scancode-release.yml

Lines changed: 35 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
strategy:
3535
fail-fast: true
3636
matrix:
37-
pyver: ["3.7", "3.8", "3.9", "3.10"]
37+
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
3838

3939
steps:
4040
- uses: actions/checkout@v2
@@ -99,22 +99,24 @@ jobs:
9999

100100
strategy:
101101
fail-fast: true
102+
matrix:
103+
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
102104

103105
steps:
104106
- uses: actions/checkout@v2
105107

106-
- name: Set up Python
108+
- name: Set up Python on ${{ matrix.pyver }}
107109
uses: actions/setup-python@v1
108110
with:
109-
python-version: "3.8"
111+
python-version: ${{ matrix.pyver }}
110112

111113
- name: Build linux app archive
112-
run: etc/release/scancode-create-release-app-linux.sh
114+
run: etc/release/scancode-create-release-app-linux.sh ${{ matrix.pyver }}
113115

114-
- name: Collect built linux app
116+
- name: Collect built linux app for python {{ matrix.pyver }}
115117
uses: actions/upload-artifact@v3
116118
with:
117-
name: linux_app
119+
name: linux_app_py_${{ matrix.pyver }}
118120
path: release/*
119121

120122

@@ -131,22 +133,24 @@ jobs:
131133

132134
strategy:
133135
fail-fast: true
136+
matrix:
137+
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
134138

135139
steps:
136140
- uses: actions/checkout@v2
137141

138-
- name: Set up Python
142+
- name: Set up Python on ${{ matrix.pyver }}
139143
uses: actions/setup-python@v1
140144
with:
141-
python-version: "3.8"
145+
python-version: ${{ matrix.pyver }}
142146

143147
- name: Build mac app archive
144-
run: etc/release/scancode-create-release-app-macos.sh
148+
run: etc/release/scancode-create-release-app-macos.sh ${{ matrix.pyver }}
145149

146-
- name: Collect built mac app
150+
- name: Collect built mac app for python {{ matrix.pyver }}
147151
uses: actions/upload-artifact@v3
148152
with:
149-
name: macos_app
153+
name: macos_app_py_${{ matrix.pyver }}
150154
path: release/*
151155

152156

@@ -160,24 +164,27 @@ jobs:
160164
defaults:
161165
run:
162166
shell: bash
167+
163168
strategy:
164169
fail-fast: true
170+
matrix:
171+
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
165172

166173
steps:
167174
- uses: actions/checkout@v2
168175

169-
- name: Set up Python
176+
- name: Set up Python on ${{ matrix.pyver }}
170177
uses: actions/setup-python@v1
171178
with:
172-
python-version: "3.8"
179+
python-version: ${{ matrix.pyver }}
173180

174181
- name: Build windows app archive
175-
run: etc/release/scancode-create-release-app-windows.sh
182+
run: etc/release/scancode-create-release-app-windows.sh ${{ matrix.pyver }}
176183

177-
- name: Collect built windows app
184+
- name: Collect built windows app for python {{ matrix.pyver }}
178185
uses: actions/upload-artifact@v3
179186
with:
180-
name: windows_app
187+
name: windows_app_py_${{ matrix.pyver }}
181188
path: release/*
182189

183190

@@ -229,7 +236,7 @@ jobs:
229236
fail-fast: true
230237
matrix:
231238
os: [ubuntu-20.04, ubuntu-22.04, macos-11, macos-12]
232-
pyver: ["3.7", "3.8", "3.9", "3.10"]
239+
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
233240

234241
steps:
235242
- uses: actions/checkout@v2
@@ -275,7 +282,7 @@ jobs:
275282
fail-fast: true
276283
matrix:
277284
os: [windows-2019, windows-2022]
278-
pyver: ["3.7", "3.8", "3.9", "3.10"]
285+
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
279286

280287
steps:
281288
- uses: actions/checkout@v2
@@ -320,7 +327,7 @@ jobs:
320327
fail-fast: true
321328
matrix:
322329
os: [ubuntu-18.04, ubuntu-20.04, ubuntu-22.04]
323-
pyver: [3.8]
330+
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
324331

325332
steps:
326333
- uses: actions/checkout@v2
@@ -330,10 +337,10 @@ jobs:
330337
with:
331338
python-version: ${{ matrix.pyver }}
332339

333-
- name: Download a single artifact linux_app
340+
- name: Download a single artifact linux_app_py_${{ matrix.pyver }}
334341
uses: actions/download-artifact@v3
335342
with:
336-
name: linux_app
343+
name: linux_app_py_${{ matrix.pyver }}
337344
path: dist
338345

339346
- name: test install app archive
@@ -361,7 +368,7 @@ jobs:
361368
fail-fast: true
362369
matrix:
363370
os: [macos-11, macos-12]
364-
pyver: [3.8]
371+
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
365372

366373
steps:
367374
- uses: actions/checkout@v2
@@ -371,10 +378,10 @@ jobs:
371378
with:
372379
python-version: ${{ matrix.pyver }}
373380

374-
- name: Download a single artifact macos_app
381+
- name: Download a single artifact macos_app_py_${{ matrix.pyver }}
375382
uses: actions/download-artifact@v3
376383
with:
377-
name: macos_app
384+
name: macos_app_py_${{ matrix.pyver }}
378385
path: dist
379386

380387
- name: test install app archive
@@ -402,7 +409,7 @@ jobs:
402409
fail-fast: true
403410
matrix:
404411
os: [windows-2019, windows-2022]
405-
pyver: [3.8]
412+
pyver: ["3.7", "3.8", "3.9", "3.10", "3.11"]
406413

407414
steps:
408415
- uses: actions/checkout@v2
@@ -412,10 +419,10 @@ jobs:
412419
with:
413420
python-version: ${{ matrix.pyver }}
414421

415-
- name: Download a single artifact windows_app
422+
- name: Download a single artifact windows_app_py_${{ matrix.pyver }}
416423
uses: actions/download-artifact@v3
417424
with:
418-
name: windows_app
425+
name: windows_app_py_${{ matrix.pyver }}
419426
path: dist
420427

421428
- name: test install app archive
@@ -491,7 +498,7 @@ jobs:
491498
strategy:
492499
fail-fast: true
493500
matrix:
494-
dist_names: ["wheels-3.7", "wheels-3.8", "wheels-3.9", "wheels-3.10", sdists]
501+
dist_names: ["wheels-3.7", "wheels-3.8", "wheels-3.9", "wheels-3.10", "wheels-3.11", sdists]
495502

496503
steps:
497504
- name: Set up Python

etc/release/scancode-create-release-app-linux.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ set -e
1818

1919

2020
operating_system=linux
21-
python_dot_version=3.8
22-
python_version=38
21+
python_dot_version=$1
22+
python_version=${python_dot_version//.}
2323
python_exe="python$python_dot_version"
2424
release_dir=scancode-toolkit-$(git describe --tags)
2525

etc/release/scancode-create-release-app-macos.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ set -e
1818

1919

2020
operating_system=macos
21-
python_dot_version=3.8
22-
python_version=38
21+
python_dot_version=$1
22+
python_version=${python_dot_version//.}
2323
python_exe="python3"
2424
release_dir=scancode-toolkit-$(git describe --tags)
2525

etc/release/scancode-create-release-app-windows.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ set -e
1717
#set -x
1818

1919
operating_system=windows
20-
python_dot_version=3.8
21-
python_version=38
20+
python_dot_version=$1
21+
python_version=${python_dot_version//.}
2222
python_exe="py -$python_dot_version"
2323
release_dir=scancode-toolkit-$(git describe --tags)
2424

0 commit comments

Comments
 (0)