forked from microsoft/debugpy
-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (80 loc) · 2.4 KB
/
attach_to_process.yml
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Used to build binaries under src/debugpy/_vendored/pydevd/pydevd_attach_to_process
name: attach_to_process
on:
workflow_dispatch:
push:
env:
PYDEVD_ATTACH_TO_PROCESS: "src/debugpy/_vendored/pydevd/pydevd_attach_to_process"
jobs:
windows-binaries:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
name: ["windows-py39"]
include:
- name: "windows-py39"
python-version: "3.9"
os: windows-latest
steps:
- uses: actions/checkout@v3
- name: Compile Windows binaries
shell: powershell
run: |
rm $env:PYDEVD_ATTACH_TO_PROCESS\* -include *.exe,*.dll,*.pdb
cd $env:pydevd_attach_to_process\windows
.\compile_windows.bat
- name: Upload Windows binaries
uses: actions/upload-artifact@v3
with:
name: pydevd_attach_to_process-windows
path: |
${{env.PYDEVD_ATTACH_TO_PROCESS}}\*.exe
${{env.PYDEVD_ATTACH_TO_PROCESS}}\*.dll
${{env.PYDEVD_ATTACH_TO_PROCESS}}\*.pdb
linux-binaries:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
name: ["linux-py39"]
include:
- name: "linux-py39"
python-version: "3.9"
os: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- name: Compile Linux binaries
shell: bash
run: |
rm $PYDEVD_ATTACH_TO_PROCESS/*.so
cd $PYDEVD_ATTACH_TO_PROCESS/linux_and_mac
bash ./compile_linux.sh
- name: Upload Linux binaries
uses: actions/upload-artifact@v3
with:
name: pydevd_attach_to_process-linux
path: ${{env.PYDEVD_ATTACH_TO_PROCESS}}/*.so
mac-binaries:
runs-on: ${{matrix.os}}
strategy:
fail-fast: true
matrix:
name: ["macos-py39"]
include:
- name: "macos-py39"
python-version: "3.9"
os: macos-latest
steps:
- uses: actions/checkout@v3
- name: Compile macOS binaries
shell: bash
run: |
rm $PYDEVD_ATTACH_TO_PROCESS/*.dylib
cd $PYDEVD_ATTACH_TO_PROCESS/linux_and_mac
bash ./compile_mac.sh
- name: Upload macOS binaries
uses: actions/upload-artifact@v3
with:
name: pydevd_attach_to_process-macos
path: ${{env.PYDEVD_ATTACH_TO_PROCESS}}/*.dylib