Skip to content

Commit

Permalink
Link python properly
Browse files Browse the repository at this point in the history
  • Loading branch information
alexroan committed Jun 5, 2024
1 parent dbeaa98 commit 393fa27
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,12 @@ jobs:
if: matrix.target == 'aarch64-unknown-linux-gnu'
run: |
sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu python3-dev
PYTHON_VERSION=$(python3 --version | awk '{print $2}')
PYTHON_VERSION_SHORT=$(echo $PYTHON_VERSION | cut -d. -f1,2)
mkdir -p .cargo
echo '[target.aarch64-unknown-linux-gnu]' > .cargo/config.toml
echo 'linker = "aarch64-linux-gnu-gcc"' >> .cargo/config.toml
echo "rustflags = [\"-C\", \"link-arg=-L/usr/lib/python${PYTHON_VERSION_SHORT}/config-${PYTHON_VERSION_SHORT}-aarch64-linux-gnu\"]" >> .cargo/config.toml
rustup target add ${{ matrix.target }}
- name: Build Binary
Expand Down

0 comments on commit 393fa27

Please sign in to comment.