Skip to content

Commit 5dbcaa9

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 Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
1 parent cad392f commit 5dbcaa9

File tree

4 files changed

+29
-22
lines changed

4 files changed

+29
-22
lines changed

.github/workflows/scancode-release.yml

Lines changed: 23 additions & 16 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,17 +99,19 @@ 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

114116
- name: Collect built linux app
115117
uses: actions/upload-artifact@v3
@@ -131,17 +133,19 @@ 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

146150
- name: Collect built mac app
147151
uses: actions/upload-artifact@v3
@@ -160,19 +164,22 @@ 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

177184
- name: Collect built windows app
178185
uses: actions/upload-artifact@v3
@@ -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
@@ -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
@@ -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
@@ -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)