Skip to content

Commit eb4473b

Browse files
committed
fix(ci): minisign install
1 parent 985da40 commit eb4473b

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

.github/workflows/marketplace-build.yml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,15 @@ on:
1919
description: "Registry base URL override"
2020
required: false
2121
type: string
22+
secrets:
23+
MINISIGN_SECRET_KEY:
24+
required: true
2225

2326
env:
2427
CARGO_TERM_COLOR: always
2528
RUST_BACKTRACE: 1
2629
SHERPA_ONNX_VERSION: "1.12.17"
30+
MINISIGN_DEB_URL: "http://launchpadlibrarian.net/780165111/minisign_0.12-1_amd64.deb"
2731
MARKETPLACE_VERSION: ${{ inputs.version }}
2832
RELEASE_TAG: ${{ inputs.release_tag }}
2933
REGISTRY_BASE_URL: ${{ inputs.registry_base_url || format('https://{0}.github.io/streamkit/registry', github.repository_owner) }}
@@ -40,7 +44,18 @@ jobs:
4044
- name: Install system dependencies
4145
run: |
4246
sudo apt-get update
43-
sudo apt-get install -y cmake pkg-config libclang-dev wget libopenblas-dev zstd minisign patchelf python3-yaml
47+
sudo apt-get install -y cmake pkg-config libclang-dev wget libopenblas-dev zstd patchelf python3-yaml
48+
49+
- name: Install minisign
50+
run: |
51+
deb_path="/tmp/minisign.deb"
52+
wget -O "${deb_path}" "${MINISIGN_DEB_URL}"
53+
if ! sudo dpkg -i "${deb_path}"; then
54+
echo "dpkg failed, retrying with apt-get"
55+
sudo env NEEDRESTART_MODE=a apt-get install -y "${deb_path}" || true
56+
fi
57+
command -v minisign >/dev/null
58+
minisign -h >/dev/null 2>&1 || true
4459
4560
- name: Install sherpa-onnx
4661
run: |

.github/workflows/marketplace-release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ env:
2525
jobs:
2626
marketplace:
2727
uses: ./.github/workflows/marketplace-build.yml
28+
permissions:
29+
contents: write
30+
pull-requests: write
31+
secrets: inherit
2832
with:
2933
version: ${{ inputs.version }}
3034
release_tag: ${{ inputs.release_tag || format('marketplace-v{0}', inputs.version) }}

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ jobs:
8282
8383
marketplace:
8484
uses: ./.github/workflows/marketplace-build.yml
85+
permissions:
86+
contents: write
87+
pull-requests: write
88+
secrets: inherit
8589
with:
8690
version: ${{ github.ref_name }}
8791
release_tag: ${{ github.ref_name }}

0 commit comments

Comments
 (0)