Skip to content

Commit

Permalink
Fix cargo test --doc on Alpine
Browse files Browse the repository at this point in the history
  • Loading branch information
jcamiel committed Dec 28, 2022
1 parent 15a07fc commit 4cfc7a9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# On platforms with musl, we desactivate static linking
# with CRT: on Alpine for instance, we must compile Hurl with this flag
# in order to produce a valid binary (mainly because of curl crate)
[target.'cfg(target_env = "musl")']
rustflags = ["-Ctarget-feature=-crt-static"]
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ jobs:
uses: addnab/docker-run-action@v3
with:
image: alpine
options: --volume ${{ github.workspace }}:/work --workdir /work --privileged --env CARGO_TERM_COLOR=always --env RUSTFLAGS=-Ctarget-feature=-crt-static
options: --volume ${{ github.workspace }}:/work --workdir /work --privileged --env CARGO_TERM_COLOR=always
run: |
set -e
apk update --quiet
Expand Down

0 comments on commit 4cfc7a9

Please sign in to comment.