File tree Expand file tree Collapse file tree 3 files changed +19
-36
lines changed
Expand file tree Collapse file tree 3 files changed +19
-36
lines changed Original file line number Diff line number Diff line change @@ -63,21 +63,24 @@ jobs:
6363 ls -lah
6464 whoami
6565 env
66+
67+ echo "patch Cargo.toml (yes, this is gross)"
68+ sed -i -e 's/# bindgen/bindgen/' Cargo.toml
69+
6670 echo "apk add:"
6771 apk upgrade
6872 apk add musl-dev gcc make cmake clang clang-libclang llvm build-base python3-dev
6973 export CARGO_BUILD_TARGET="x86_64-unknown-linux-musl"
70- ln -s /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/crtbeginS.o /usr/lib
71- ln -s /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/crtendS.o /usr/lib
72- ln -s /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/libgcc.a /usr/lib
74+ # ln -s /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/crtbeginS.o /usr/lib
75+ # ln -s /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/crtendS.o /usr/lib
76+ # ln -s /usr/lib/gcc/x86_64-alpine-linux-musl/14.2.0/libgcc.a /usr/lib
7377 rustup target add x86_64-unknown-linux-musl
7478
75- echo "patch Cargo.toml (yes, this is gross)"
76- sed -i -e 's/# bindgen/bindgen/' Cargo.toml
7779 echo "create venv:"
7880 python3 -m venv .env
79- . .env/bin/activate && pip install -r requirements.txt
80- . .env/bin/activate && pip install patchelf
81+ . .env/bin/activate
82+ pip install -r requirements.txt
83+ pip install patchelf
8184 if [ "${SHOULD_PUBLISH}" == 'true' ]; then
8285 echo "~~~~ maturin publishing"
8386 . .env/bin/activate && maturin publish --no-sdist -u __token__ -p ${{ secrets.MATURIN_PASSWORD }}
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ if [ " $1 " = " --libs" ]; then
4+ /usr/bin/llvm-config " $@ " " --link-static"
5+ else
6+ /usr/bin/llvm-config " $@ "
7+ fi
You can’t perform that action at this time.
0 commit comments