Skip to content

Commit

Permalink
fix(release): fixed the "serious" profile
Browse files Browse the repository at this point in the history
  • Loading branch information
jdx committed May 1, 2024
1 parent e6448b3 commit 487a1a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
Expand Down
8 changes: 4 additions & 4 deletions scripts/build-tarball.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 487a1a0

Please sign in to comment.