How exactly is before-script-linux
expected to work to install dependencies?
#273
-
#157 has introduced I tried to use it via
How exactly is |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Trying to self-answer as far as possible. The issue I was running into was basically a consequence of how the default generated I've found a work-around in this comment: #162 (comment) The idea is to introduce a branching into the [...]
before-script-linux: |
case "${{ matrix.target }}" in
"aarch64" | "armv7" | "s390x" | "ppc64le")
# NOTE: pypa/manylinux docker images are Debian based
sudo apt-get update
sudo apt-get install -y pkg-config libssl-dev
;;
"x86" | "x86_64")
# NOTE: rust-cross/manylinux docker images are CentOS based
yum update -y
yum install -y openssl openssl-devel
;;
esac
[...] |
Beta Was this translation helpful? Give feedback.
Trying to self-answer as far as possible.
The issue I was running into was basically a consequence of how the default generated
CI.yml
by maturin looks like: It contains a matrix over multiple Linux distributions which have different package managers. Therefore just usingapt-get
isn't sufficient, because it will fail in the matrix branches that don't haveapt-get
.I've found a work-around in this comment: #162 (comment)
The idea is to introduce a branching into the
before-script-linux
so that it picks the right kind of package manager dependent on the matrix branch: