ci: enable strip on release builds with Cargo.toml (#679)

Removes the manual strip used in favour of the now native functionality in Cargo.
This commit is contained in:
Clement Tsang 2022-02-24 23:18:22 -08:00 committed by GitHub
parent 128ec81200
commit c4c9130b4a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 2 additions and 31 deletions

View file

@ -59,7 +59,6 @@ jobs:
os: "ubuntu-18.04",
target: "x86_64-unknown-linux-gnu",
cross: false,
strip: true,
}
- {
os: "ubuntu-18.04",
@ -67,31 +66,26 @@ jobs:
cross: false,
container: quay.io/pypa/manylinux2014_x86_64,
suffix: "2-17",
strip: true,
}
- {
os: "ubuntu-18.04",
target: "i686-unknown-linux-gnu",
cross: true,
strip: true,
}
- {
os: "ubuntu-18.04",
target: "x86_64-unknown-linux-musl",
cross: false,
strip: true,
}
- {
os: "ubuntu-18.04",
target: "i686-unknown-linux-musl",
cross: true,
strip: true,
}
- {
os: "macOS-latest",
target: "x86_64-apple-darwin",
cross: false,
strip: true,
}
- {
os: "windows-2019",
@ -164,13 +158,6 @@ jobs:
mkdir completion
cp -r ./target/${{ matrix.triple.target }}/release/build/bottom-*/out/. completion
- name: Strip release binary (macOS or Linux x86-64/i686)
if: matrix.triple.strip == true
run: |
strip target/${{ matrix.triple.target }}/release/btm
# TODO: Strip ARM
- name: Bundle release and completion (Windows)
if: matrix.triple.os == 'windows-2019'
shell: bash

View file

@ -55,7 +55,6 @@ jobs:
os: "ubuntu-18.04",
target: "x86_64-unknown-linux-gnu",
cross: false,
strip: true,
}
- {
os: "ubuntu-18.04",
@ -63,32 +62,23 @@ jobs:
cross: false,
container: quay.io/pypa/manylinux2014_x86_64,
suffix: "2-17",
strip: true,
}
- {
os: "ubuntu-18.04",
target: "i686-unknown-linux-gnu",
cross: true,
strip: true,
}
- {
os: "ubuntu-18.04",
target: "x86_64-unknown-linux-musl",
cross: false,
strip: true,
}
- {
os: "ubuntu-18.04",
target: "i686-unknown-linux-musl",
cross: true,
strip: true,
}
- {
os: "macOS-latest",
target: "x86_64-apple-darwin",
cross: false,
strip: true,
}
- { os: "macOS-latest", target: "x86_64-apple-darwin", cross: false }
- {
os: "windows-2019",
target: "x86_64-pc-windows-msvc",
@ -160,13 +150,6 @@ jobs:
mkdir completion
cp -r ./target/${{ matrix.triple.target }}/release/build/bottom-*/out/. completion
- name: Strip release binary (macOS or Linux x86-64/i686)
if: matrix.triple.strip == true
run: |
strip target/${{ matrix.triple.target }}/release/btm
# TODO: Strip ARM
- name: Bundle release and completion (Windows)
if: matrix.triple.os == 'windows-2019'
shell: bash

View file

@ -30,6 +30,7 @@ lto = true
# lto = false
opt-level = 3
codegen-units = 1
strip = "symbols"
[features]
default = ["fern", "log", "battery", "gpu"]