Skip to content

Commit 237cfd4

Browse files
committed
fix release scripts
1 parent 68fa25a commit 237cfd4

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.ci/linux/release

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,11 @@ fi
3939

4040
prepare() {
4141
echo "~> install \`mold\`"
42-
apt-get install -y mold
42+
if [ "$EUID" -ne 0 ]; then
43+
apt-get install -y mold
44+
else
45+
sudo apt-get install -y mold
46+
fi
4347
}
4448

4549
build() {
@@ -50,7 +54,7 @@ build() {
5054

5155
local bin="$1"
5256

53-
export RUSTFLAGS="-C link-arg=-fuse-ld=mold -Ctarget-cpu=native $rustflags"
57+
export RUSTFLAGS="-Ctarget-cpu=native $rustflags"
5458

5559
! [ -d "$root/.result" ] && mkdir -p "$root/.result"
5660
pushd "$root/.result" >/dev/null

.ci/macos/release

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ build() {
4545

4646
local bin="$1"
4747

48-
export RUSTFLAGS="--cfg tokio_unstable -Ctarget-cpu=native $rustflags"
48+
export RUSTFLAGS="-Ctarget-cpu=native $rustflags"
4949

5050
! [ -d "$root/.result" ] && mkdir -p "$root/.result"
5151
pushd "$root/.result" >/dev/null

.ci/windows/Release.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ function Main {
3636
)
3737

3838
if (![System.Environment]::Is64BitOperatingSystem) {
39-
Write-Error ">>> \`charted\` is not supported on 32-bit systems"
39+
Write-Error ">>> ume is not supported on 32-bit systems"
4040
Exit 1
4141
}
4242

0 commit comments

Comments
 (0)