mirror of
https://github.com/chatmail/core.git
synced 2026-05-20 23:36:30 +03:00
ci: remove musl check
It requires installing Zig and slows down CI. This was not broken for a while and we can do more frequent core releases to catch problems.
This commit is contained in:
4
.github/workflows/ci.yml
vendored
4
.github/workflows/ci.yml
vendored
@@ -39,10 +39,6 @@ jobs:
|
|||||||
- name: Check
|
- name: Check
|
||||||
run: cargo check --workspace --all-targets --all-features
|
run: cargo check --workspace --all-targets --all-features
|
||||||
|
|
||||||
# Check with musl libc target which is used for `deltachat-rpc-server` releases.
|
|
||||||
- name: Check musl
|
|
||||||
run: scripts/zig-musl-check.sh
|
|
||||||
|
|
||||||
cargo_deny:
|
cargo_deny:
|
||||||
name: cargo deny
|
name: cargo deny
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|||||||
@@ -1,28 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
#
|
|
||||||
# Run `cargo check` with musl libc.
|
|
||||||
# This requires `zig` to compile vendored openssl.
|
|
||||||
|
|
||||||
set -x
|
|
||||||
set -e
|
|
||||||
|
|
||||||
unset RUSTFLAGS
|
|
||||||
|
|
||||||
# Pin Rust version to avoid uncontrolled changes in the compiler and linker flags.
|
|
||||||
export RUSTUP_TOOLCHAIN=1.72.0
|
|
||||||
|
|
||||||
ZIG_VERSION=0.11.0
|
|
||||||
|
|
||||||
# Download Zig
|
|
||||||
rm -fr "$ZIG_VERSION" "zig-linux-x86_64-$ZIG_VERSION.tar.xz"
|
|
||||||
wget "https://ziglang.org/builds/zig-linux-x86_64-$ZIG_VERSION.tar.xz"
|
|
||||||
tar xf "zig-linux-x86_64-$ZIG_VERSION.tar.xz"
|
|
||||||
export PATH="$PWD/zig-linux-x86_64-$ZIG_VERSION:$PATH"
|
|
||||||
|
|
||||||
rustup target add x86_64-unknown-linux-musl
|
|
||||||
CC="$PWD/scripts/zig-cc" \
|
|
||||||
TARGET_CC="$PWD/scripts/zig-cc" \
|
|
||||||
CARGO_TARGET_X86_64_UNKNOWN_LINUX_MUSL_LINKER="$PWD/scripts/zig-cc" \
|
|
||||||
LD="$PWD/scripts/zig-cc" \
|
|
||||||
ZIG_TARGET="x86_64-linux-musl" \
|
|
||||||
cargo check --release --target x86_64-unknown-linux-musl -p deltachat_ffi --features jsonrpc
|
|
||||||
Reference in New Issue
Block a user