From 487a1a0d336fed180123659ac59d1106d79f2d60 Mon Sep 17 00:00:00 2001 From: Jeff Dickey <216188+jdx@users.noreply.github.com> Date: Wed, 1 May 2024 17:27:53 -0500 Subject: [PATCH] fix(release): fixed the "serious" profile --- .github/workflows/release.yml | 3 +-- scripts/build-tarball.sh | 8 ++++---- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6061506b7..d0aed108b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -81,8 +81,7 @@ jobs: - run: scripts/setup-zipsign.sh env: ZIPSIGN: ${{ secrets.ZIPSIGN }} - - run: ln -sv ./serious target/release - - run: scripts/build-tarball.sh mise --profile=serious --features openssl/vendored,git2 --target ${{matrix.target}} + - run: scripts/build-tarball.sh mise --features openssl/vendored,git2 --target ${{matrix.target}} - uses: actions/upload-artifact@v4 with: name: tarball-${{matrix.target}} diff --git a/scripts/build-tarball.sh b/scripts/build-tarball.sh index 4738819e9..6bff2e36f 100755 --- a/scripts/build-tarball.sh +++ b/scripts/build-tarball.sh @@ -79,16 +79,16 @@ VERSION=$(./scripts/get-version.sh) BASENAME=$NAME-$VERSION-$(get_os)-$(get_arch)$(get_suffix) if command -v cross >/dev/null; then - cross build "$@" + cross build --profile=serious "$@" elif command -v zig >/dev/null; then - cargo zigbuild "$@" + cargo zigbuild --profile=serious "$@" else - cargo build "$@" + cargo build --profile=serious "$@" fi mkdir -p dist/mise/bin mkdir -p dist/mise/man/man1 mkdir -p dist/mise/share/fish/vendor_conf.d -cp "target/$RUST_TRIPLE/release/mise" dist/mise/bin/mise +cp "target/$RUST_TRIPLE/serious/mise" dist/mise/bin/mise cp README.md dist/mise/README.md cp LICENSE dist/mise/LICENSE cp {,dist/mise/}man/man1/mise.1