mirror of
https://github.com/ClementTsang/bottom
synced 2024-11-10 14:44:18 +00:00
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:
parent
128ec81200
commit
c4c9130b4a
3 changed files with 2 additions and 31 deletions
13
.github/workflows/deployment.yml
vendored
13
.github/workflows/deployment.yml
vendored
|
@ -59,7 +59,6 @@ jobs:
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-18.04",
|
||||||
target: "x86_64-unknown-linux-gnu",
|
target: "x86_64-unknown-linux-gnu",
|
||||||
cross: false,
|
cross: false,
|
||||||
strip: true,
|
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-18.04",
|
||||||
|
@ -67,31 +66,26 @@ jobs:
|
||||||
cross: false,
|
cross: false,
|
||||||
container: quay.io/pypa/manylinux2014_x86_64,
|
container: quay.io/pypa/manylinux2014_x86_64,
|
||||||
suffix: "2-17",
|
suffix: "2-17",
|
||||||
strip: true,
|
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-18.04",
|
||||||
target: "i686-unknown-linux-gnu",
|
target: "i686-unknown-linux-gnu",
|
||||||
cross: true,
|
cross: true,
|
||||||
strip: true,
|
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-18.04",
|
||||||
target: "x86_64-unknown-linux-musl",
|
target: "x86_64-unknown-linux-musl",
|
||||||
cross: false,
|
cross: false,
|
||||||
strip: true,
|
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-18.04",
|
||||||
target: "i686-unknown-linux-musl",
|
target: "i686-unknown-linux-musl",
|
||||||
cross: true,
|
cross: true,
|
||||||
strip: true,
|
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
os: "macOS-latest",
|
os: "macOS-latest",
|
||||||
target: "x86_64-apple-darwin",
|
target: "x86_64-apple-darwin",
|
||||||
cross: false,
|
cross: false,
|
||||||
strip: true,
|
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
os: "windows-2019",
|
os: "windows-2019",
|
||||||
|
@ -164,13 +158,6 @@ jobs:
|
||||||
mkdir completion
|
mkdir completion
|
||||||
cp -r ./target/${{ matrix.triple.target }}/release/build/bottom-*/out/. 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)
|
- name: Bundle release and completion (Windows)
|
||||||
if: matrix.triple.os == 'windows-2019'
|
if: matrix.triple.os == 'windows-2019'
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
19
.github/workflows/nightly.yml
vendored
19
.github/workflows/nightly.yml
vendored
|
@ -55,7 +55,6 @@ jobs:
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-18.04",
|
||||||
target: "x86_64-unknown-linux-gnu",
|
target: "x86_64-unknown-linux-gnu",
|
||||||
cross: false,
|
cross: false,
|
||||||
strip: true,
|
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-18.04",
|
||||||
|
@ -63,32 +62,23 @@ jobs:
|
||||||
cross: false,
|
cross: false,
|
||||||
container: quay.io/pypa/manylinux2014_x86_64,
|
container: quay.io/pypa/manylinux2014_x86_64,
|
||||||
suffix: "2-17",
|
suffix: "2-17",
|
||||||
strip: true,
|
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-18.04",
|
||||||
target: "i686-unknown-linux-gnu",
|
target: "i686-unknown-linux-gnu",
|
||||||
cross: true,
|
cross: true,
|
||||||
strip: true,
|
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-18.04",
|
||||||
target: "x86_64-unknown-linux-musl",
|
target: "x86_64-unknown-linux-musl",
|
||||||
cross: false,
|
cross: false,
|
||||||
strip: true,
|
|
||||||
}
|
}
|
||||||
- {
|
- {
|
||||||
os: "ubuntu-18.04",
|
os: "ubuntu-18.04",
|
||||||
target: "i686-unknown-linux-musl",
|
target: "i686-unknown-linux-musl",
|
||||||
cross: true,
|
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",
|
os: "windows-2019",
|
||||||
target: "x86_64-pc-windows-msvc",
|
target: "x86_64-pc-windows-msvc",
|
||||||
|
@ -160,13 +150,6 @@ jobs:
|
||||||
mkdir completion
|
mkdir completion
|
||||||
cp -r ./target/${{ matrix.triple.target }}/release/build/bottom-*/out/. 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)
|
- name: Bundle release and completion (Windows)
|
||||||
if: matrix.triple.os == 'windows-2019'
|
if: matrix.triple.os == 'windows-2019'
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
|
@ -30,6 +30,7 @@ lto = true
|
||||||
# lto = false
|
# lto = false
|
||||||
opt-level = 3
|
opt-level = 3
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
|
strip = "symbols"
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = ["fern", "log", "battery", "gpu"]
|
default = ["fern", "log", "battery", "gpu"]
|
||||||
|
|
Loading…
Reference in a new issue