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:
parent
cf08f935dc
commit
c92cfc644d
|
@ -326,10 +326,22 @@ jobs:
|
||||||
with:
|
with:
|
||||||
key: x86_64-unknown-linux-gnu-deb
|
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: |
|
run: |
|
||||||
cargo install cargo-deb --version 1.29.0 --locked
|
mkdir completion
|
||||||
cargo deb
|
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
|
cp ./target/debian/bottom_*.deb ./bottom_${{ env.RELEASE_VERSION }}_amd64.deb
|
||||||
|
|
||||||
- name: Create release directory for artifact, move file
|
- name: Create release directory for artifact, move file
|
||||||
|
|
|
@ -313,10 +313,22 @@ jobs:
|
||||||
with:
|
with:
|
||||||
key: x86_64-unknown-linux-gnu-deb
|
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
|
- name: Build Debian release
|
||||||
run: |
|
run: |
|
||||||
cargo install cargo-deb --version 1.29.0 --locked
|
cargo install cargo-deb --version 1.34.0 --locked
|
||||||
cargo deb
|
cargo deb --no-build
|
||||||
cp ./target/debian/bottom_*.deb ./bottom_${{ env.RELEASE_VERSION }}_amd64.deb
|
cp ./target/debian/bottom_*.deb ./bottom_${{ env.RELEASE_VERSION }}_amd64.deb
|
||||||
|
|
||||||
- name: Create release directory for artifact, move file
|
- name: Create release directory for artifact, move file
|
||||||
|
|
10
Cargo.toml
10
Cargo.toml
|
@ -92,20 +92,16 @@ assets = [
|
||||||
["target/release/btm", "usr/bin/", "755"],
|
["target/release/btm", "usr/bin/", "755"],
|
||||||
["LICENSE", "usr/share/doc/btm/", "644"],
|
["LICENSE", "usr/share/doc/btm/", "644"],
|
||||||
[
|
[
|
||||||
"target/release/build/bottom-*/out/btm.bash",
|
"completion/btm.bash",
|
||||||
"usr/share/bash-completion/completions/btm",
|
"usr/share/bash-completion/completions/btm",
|
||||||
"644",
|
"644",
|
||||||
],
|
],
|
||||||
[
|
[
|
||||||
"target/release/build/bottom-*/out/btm.fish",
|
"completion/btm.fish",
|
||||||
"usr/share/fish/vendor_completions.d/btm.fish",
|
"usr/share/fish/vendor_completions.d/btm.fish",
|
||||||
"644",
|
"644",
|
||||||
],
|
],
|
||||||
[
|
["completion/_btm", "usr/share/zsh/vendor-completions/", "644"],
|
||||||
"target/release/build/bottom-*/out/_btm",
|
|
||||||
"usr/share/zsh/vendor-completions/",
|
|
||||||
"644",
|
|
||||||
],
|
|
||||||
]
|
]
|
||||||
extended-description = """\
|
extended-description = """\
|
||||||
A cross-platform graphical process/system monitor with a customizable interface and a multitude of
|
A cross-platform graphical process/system monitor with a customizable interface and a multitude of
|
||||||
|
|
Loading…
Reference in New Issue