Skip to content

Commit

Permalink
Remove python bindings from being built during release
Browse files Browse the repository at this point in the history
  • Loading branch information
alexroan committed Jun 5, 2024
1 parent 393fa27 commit 055439d
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,14 @@ jobs:
- name: Install Dependencies
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)
sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu
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
run: cargo build --verbose --locked --release --target ${{ matrix.target }}
run: cargo build --verbose --locked --release --package aderyn --target ${{ matrix.target }}

- name: Create Binary
shell: bash
Expand Down

0 comments on commit 055439d

Please sign in to comment.