commit 7d19318ef250e5e063df5867a6969c157f31ff59
parent 9407acb156f089272edec0b3c14a537b6c48f6f7
Author: Minerva_juppiter <94231606+minerva-jupiter@users.noreply.github.com>
Date: Wed, 29 Jul 2026 23:36:18 +0900
Update cargo-deb.yaml
Diffstat:
1 file changed, 17 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/cargo-deb.yaml b/.github/workflows/cargo-deb.yaml
@@ -25,22 +25,22 @@ jobs:
type: github-release
repo: nushell/nushell
bin: nu
- cargo_deb_flags: ""
+ prebuild_assets: false
- name: starship
type: github-release
repo: starship/starship
bin: starship
- cargo_deb_flags: ""
+ prebuild_assets: false
- name: zellij
type: github-release
repo: zellij-org/zellij
bin: zellij
- cargo_deb_flags: "--no-metadata"
+ prebuild_assets: true
- name: gemini-commit-message
type: git-head
repo: minerva-jupiter/gemini-commit-message
bin: gemini-commit-message
- cargo_deb_flags: ""
+ prebuild_assets: false
steps:
- name: Checkout repository
@@ -51,8 +51,9 @@ jobs:
- name: Install cargo-deb
run: cargo install cargo-deb
+
- name: Install Protoc
- uses: arduino/setup-protoc@master
+ uses: arduino/setup-protoc@v2
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
@@ -65,7 +66,6 @@ jobs:
if [ "${{ matrix.type }}" = "github-release" ]; then
LATEST_TAG=$(curl -s "https://api.github.com/repos/${{ matrix.repo }}/releases/latest" | jq -r .tag_name)
- echo "Latest tag for ${{ matrix.name }}: $LATEST_TAG"
git clone --depth 1 --branch "$LATEST_TAG" "https://github.com/${{ matrix.repo }}.git" source
else
git clone --depth 1 "https://github.com/${{ matrix.repo }}.git" source
@@ -73,7 +73,17 @@ jobs:
cd source
- cargo deb ${{ matrix.cargo_deb_flags }}
+ if [ "${{ matrix.prebuild_assets }}" = "true" ]; then
+ cargo install ${{ matrix.name }} --locked
+ mkdir -p assets/completions assets/layouts assets/plugins assets/man
+ for shell in bash fish zsh; do
+ ${{ matrix.bin }} setup --generate-completion $shell > assets/completions/${{ matrix.bin }}.$shell
+ done
+ # zsh の補完ファイル名規約に合わせる処理
+ # mv assets/completions/${{ matrix.bin }}.zsh assets/completions/_${{ matrix.bin }}
+ fi
+
+ cargo deb
mkdir -p ../../debs
cp target/debian/*.deb ../../debs/