bug/ci: fix debian file generation breaking completions (#645)

Fixes completion file generation being broken while the .deb file is made, due to using an incorrect path.
This commit is contained in:
Clement Tsang 2021-12-27 13:49:15 -08:00 committed by GitHub
parent cf08f935dc
commit c92cfc644d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 32 additions and 12 deletions

View file

@ -326,10 +326,22 @@ jobs:
with:
key: x86_64-unknown-linux-gnu-deb
- name: Build Debian release (Linux x86-64 GNU)
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --verbose --features "battery"
- name: Move autocomplete to working directory
shell: bash
run: |
cargo install cargo-deb --version 1.29.0 --locked
cargo deb
mkdir completion
cp -r ./target/release/build/bottom-*/out/. completion
- name: Build Debian release
run: |
cargo install cargo-deb --version 1.34.0 --locked
cargo deb --no-build
cp ./target/debian/bottom_*.deb ./bottom_${{ env.RELEASE_VERSION }}_amd64.deb
- name: Create release directory for artifact, move file

View file

@ -313,10 +313,22 @@ jobs:
with:
key: x86_64-unknown-linux-gnu-deb
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release --verbose --features "battery"
- name: Move autocomplete to working directory
shell: bash
run: |
mkdir completion
cp -r ./target/release/build/bottom-*/out/. completion
- name: Build Debian release
run: |
cargo install cargo-deb --version 1.29.0 --locked
cargo deb
cargo install cargo-deb --version 1.34.0 --locked
cargo deb --no-build
cp ./target/debian/bottom_*.deb ./bottom_${{ env.RELEASE_VERSION }}_amd64.deb
- name: Create release directory for artifact, move file

View file

@ -92,20 +92,16 @@ assets = [
["target/release/btm", "usr/bin/", "755"],
["LICENSE", "usr/share/doc/btm/", "644"],
[
"target/release/build/bottom-*/out/btm.bash",
"completion/btm.bash",
"usr/share/bash-completion/completions/btm",
"644",
],
[
"target/release/build/bottom-*/out/btm.fish",
"completion/btm.fish",
"usr/share/fish/vendor_completions.d/btm.fish",
"644",
],
[
"target/release/build/bottom-*/out/_btm",
"usr/share/zsh/vendor-completions/",
"644",
],
["completion/_btm", "usr/share/zsh/vendor-completions/", "644"],
]
extended-description = """\
A cross-platform graphical process/system monitor with a customizable interface and a multitude of