diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 00000000000..039e3cbe056 --- /dev/null +++ b/.cargo/config.toml @@ -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"] diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2cd771e1d39..ec2283e1084 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -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