Skip to content

How exactly is before-script-linux expected to work to install dependencies? #273

Closed Answered by bluenote10
bluenote10 asked this question in Q&A
Discussion options

You must be logged in to vote

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 using apt-get isn't sufficient, because it will fail in the matrix branches that don't have apt-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:

          [...]
          before-script-linux: |
            case "${{ matrix.target }}" in
              "aarch64" | "armv…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by bluenote10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant