.gitea/workflows: fix deb building args
Some checks failed
Build and test / test (push) Has been cancelled
Build and test / docs (push) Has been cancelled
Build and test / build (push) Has been cancelled
Build and test / check (push) Has been cancelled
Build and test / check-license (push) Has been cancelled

This commit is contained in:
2025-12-04 13:53:39 +09:00
parent a4084e2ecc
commit d6da1f9998
2 changed files with 17 additions and 4 deletions

View File

@@ -49,10 +49,9 @@ jobs:
run: cargo install cargo-deb
- name: Build deb package
run: |
./create-deb.sh \
${{ inputs.deb_version != "" && "--deb-version " + inputs.deb_version || "" }} \
${{ inputs.deb_revision != "" && "--deb-revision " + inputs.deb_revision || "" }}
env:
CREATE_DEB_DEBUG: "1"
run: ./create-deb.sh
- name: Upload deb package artifact
uses: actions/upload-artifact@v3

View File

@@ -2,6 +2,20 @@
set -euo pipefail
if [[ "${CREATE_DEB_DEBUG:-}" == "1" ]]; then
set -x
fi
if ! command -v cargo &> /dev/null; then
echo "cargo could not be found" >&2
exit 1
fi
if ! command -v cargo-deb &> /dev/null; then
echo "cargo-deb could not be found" >&2
exit 1
fi
cargo build --release
mkdir -p assets/completions