diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 21d3b31..5e65316 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,7 +37,7 @@ jobs: export RUSTFLAGS="-C linker=${CC}" cargo build --release --target ${{ matrix.arch }} version=${{ github.event.release.tag_name }} - cd target/${{ matrix.arch }}/release + cd target/${{ matrix.arch }}/release --no-default-features -F zig 7z a -mx9 "../../../msg_tool-${version}-${{ matrix.arch }}.zip" "msg_tool" - name: Upload to release run: | diff --git a/Cargo.toml b/Cargo.toml index 9c92df7..9fa5a97 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -61,6 +61,8 @@ zstd = { version = "0.13", optional = true } [features] default = ["all-fmt", "image-jpg", "image-jxl", "image-webp", "audio-flac", "jieba"] +# Zig can not build libjxl +zig = ["all-fmt", "image-jpg", "image-webp", "audio-flac", "jieba"] all-fmt = ["all-script", "all-img", "all-arc", "all-audio"] all-script = ["artemis", "artemis-panmimisoft", "bgi", "cat-system", "circus", "entis-gls", "escude", "ex-hibit", "favorite", "hexen-haus", "kirikiri", "musica", "qlie", "silky", "softpal", "will-plus", "yaneurao", "yaneurao-itufuru"] all-img = ["bgi-img", "cat-system-img", "circus-img", "emote-img", "hexen-haus-img", "kirikiri-img", "qlie-img", "softpal-img", "will-plus-img"] diff --git a/check_features.py b/check_features.py index f6800d2..98371d3 100644 --- a/check_features.py +++ b/check_features.py @@ -3,6 +3,8 @@ import subprocess import sys def filter_name(name): + if name == 'zig': + return False if name.startswith("utils-"): return False if name.startswith("all-"):