Skip to content

Commit

Permalink
Move env to proper place.
Browse files Browse the repository at this point in the history
  • Loading branch information
Pavel Minaev committed Aug 23, 2023
1 parent 82e1720 commit 799ac95
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/attach_to_process.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,17 +63,18 @@ jobs:
- arch: amd64
container-image: quay.io/pypa/manylinux2014_x86_64

env:
CONTAINER_IMAGE: ${{ matrix.container-image }}
INPUT_FILE: ${{ env.PYDEVD_ATTACH_TO_PROCESS }}/linux_and_mac/attach.cpp
OUTPUT_FILE: ${{ env.PYDEVD_ATTACH_TO_PROCESS }}/attach_linux_${{ matrix.arch }}.so

steps:
- uses: actions/checkout@v3

- name: Clean up old binaries
run: rm ${{ env.PYDEVD_ATTACH_TO_PROCESS }}/*.so

- name: Compile binaries
env:
CONTAINER_IMAGE: ${{ matrix.container-image }}
INPUT_FILE: ${{ env.PYDEVD_ATTACH_TO_PROCESS }}/linux_and_mac/attach.cpp
OUTPUT_FILE: ${{ env.PYDEVD_ATTACH_TO_PROCESS }}/attach_linux_${{ matrix.arch }}.so
uses: docker://${{ env.CONTAINER_IMAGE }}
with:
args: g++ -std=c++11 -shared -fPIC -nostartfiles $GITHUB_WORKSPACE/$INPUT_FILE -o $GITHUB_WORKSPACE/$OUTPUT_FILE
Expand Down

0 comments on commit 799ac95

Please sign in to comment.