diff --git a/.github/workflows/staticbuild.yml b/.github/workflows/staticbuild.yml index 3349093e7..d6f09a0cc 100644 --- a/.github/workflows/staticbuild.yml +++ b/.github/workflows/staticbuild.yml @@ -64,8 +64,8 @@ jobs: rustup target add aarch64-apple-darwin - name: Build run: | - cargo build --release --target aarch64-apple-darwin - cargo build --release --target x86_64-apple-darwin + RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target aarch64-apple-darwin + RUSTFLAGS='-C target-feature=+crt-static' cargo build --release --target x86_64-apple-darwin - name: Compress run: | tar -cazf fish-macos-aarch64.tar.xz -C target/aarch64-apple-darwin/release/ fish{,_indent,_key_reader}