diff --git a/.config/config.toml b/.config/config.toml new file mode 100644 index 0000000..1a02075 --- /dev/null +++ b/.config/config.toml @@ -0,0 +1,2 @@ +[target.x86_64-unknown-linux-musl] +rustflags = ["-C", "target-feature=+crt-static"] \ No newline at end of file diff --git a/.github/workflows/release-packaging.yaml b/.github/workflows/release-packaging.yaml index 1b79b71..661f89f 100644 --- a/.github/workflows/release-packaging.yaml +++ b/.github/workflows/release-packaging.yaml @@ -22,7 +22,7 @@ jobs: run: apk update && apk add musl-dev gpgme-dev openssl-dev openssl-libs-static libgit2-dev libgit2-static zlib-dev zlib-static - name: Release Build - run: cargo build --release + run: cargo build --release --target=x86_64-unknown-linux-musl env: OPENSSL_STATIC: "1" OPENSSL_LIB_DIR: /usr/lib diff --git a/Cargo.toml b/Cargo.toml index a413f43..6f24626 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -18,6 +18,3 @@ lto = true opt-level = "z" codegen-units = 1 panic = "abort" - -[target.x86_64-unknown-linux-musl] -rustflags = ["-C", "target-feature=+crt-static"] \ No newline at end of file