-
Notifications
You must be signed in to change notification settings - Fork 3
63 lines (52 loc) · 1.55 KB
/
explicitWheelRepair.yml
File metadata and controls
63 lines (52 loc) · 1.55 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
# Debugging script for isolating remove_source.py
#
# Ideally, this would be done by cibuildwheel, but there are os specific
# issues that this will be used to help debug.
#
# Effects: artifact containing wheels that have been through remove_source.py;
# - this saves over the previous artifact of the same name.
name: ExplictWheelRepair
on:
workflow_dispatch:
workflow_call:
inputs:
# Name to connect to an artifact generated by buildAndSave (dummy or real)
saveName:
required: true
type: string
# some unresolved issues have been noted on mac and windows
targetOS:
required: true
type: string
# The command to look at the contents of the directory will vary by
# targetOS
check:
required: false
default: ""
type: string
jobs:
wheelRepair:
runs-on: ${{inputs.targetOS}}
steps:
- uses: actions/checkout@v3
with:
sparse-checkout: |
remove_source.py
- name: first directory check
run: ${{inputs.check}}
- uses: actions/download-artifact@v3
with:
name: ${{inputs.saveName}}
- name: second directory check
run: ${{inputs.check}}
- name: get package
run: pip install wheel
- name: remove source script
run: python remove_source.py . *.whl
- name: third directory check
run: ${{inputs.check}}
- uses: actions/upload-artifact@v3
with:
name: ${{inputs.saveName}}
path: ./*.whl
retention-days: 1