Use step.with.args instead of run. #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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: windows-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Compile 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 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 | ||
mac-binaries: | ||
runs-on: macos-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Compile binaries | ||
shell: bash | ||
run: | | ||
rm ${{ env.PYDEVD_ATTACH_TO_PROCESS }}/*.dylib | ||
cd ${{ env.PYDEVD_ATTACH_TO_PROCESS }}/linux_and_mac | ||
bash ./compile_mac.sh | ||
- name: Upload binaries | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: pydevd_attach_to_process-macos | ||
path: ${{ env.PYDEVD_ATTACH_TO_PROCESS }}/*.dylib | ||
linux-binaries: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
arch: [x86, amd64] | ||
include: | ||
- arch: x86 | ||
container-image: quay.io/pypa/manylinux2014_i686 | ||
- arch: amd64 | ||
container-image: quay.io/pypa/manylinux2014_x86_64 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Clean up old binaries | ||
run: rm ${{ env.PYDEVD_ATTACH_TO_PROCESS }}/*.so | ||
- name: Compile binaries | ||
uses: docker://${{ matrix.container-image }} | ||
Check failure on line 73 in .github/workflows/attach_to_process.yml GitHub Actions / attach_to_processInvalid workflow file
|
||
with: | ||
args: > | ||
g++ -std=c++11 -shared -fPIC -nostartfiles | ||
-o $GITHUB_WORKSPACE/${{ PYDEVD_ATTACH_TO_PROCESS }}/attach_linux_${{ matrix.arch }}.so | ||
$GITHUB_WORKSPACE/${{ PYDEVD_ATTACH_TO_PROCESS }}/linux_and_mac/attach.cpp | ||
- name: Upload binaries | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: pydevd_attach_to_process-linux-${{ matrix.arch }} | ||
path: ${{ env.PYDEVD_ATTACH_TO_PROCESS }}/*.so |