-
Notifications
You must be signed in to change notification settings - Fork 120
76 lines (68 loc) · 2.3 KB
/
Copy pathpublish-debian.yml
File metadata and controls
76 lines (68 loc) · 2.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Publish Debian Package
on:
workflow_dispatch:
inputs:
component:
description: "Component to publish"
required: true
type: choice
options:
- network-monitor
- node
- ntx-builder
- prover
- validator
version:
description: "Version to release (E.G. v0.10.0-rc.1, v0.10.0). Corresponding git tag must already exist."
required: true
type: string
permissions:
contents: read
jobs:
publish:
name: Publish ${{ inputs.component }} ${{ matrix.arch }} Debian
permissions:
contents: write
strategy:
matrix:
arch: [amd64, arm64]
runs-on:
labels: ${{ matrix.arch == 'arm64' && 'ubuntu-24.04-arm' || 'ubuntu-24.04' }}
steps:
- name: Checkout repo
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
fetch-depth: 0
persist-credentials: false
- name: Resolve component inputs
id: resolve
shell: bash
env:
COMPONENT: ${{ inputs.component }}
run: |
package="miden-${COMPONENT}"
packaging_dir="${COMPONENT}"
# prover's binary crate lives in bin/remote-prover and is named miden-remote-prover
if [ "${COMPONENT}" = "prover" ]; then
crate_dir="remote-prover"
crate="miden-remote-prover"
else
crate_dir="${COMPONENT}"
crate="miden-${COMPONENT}"
fi
echo "package=${package}" >> "$GITHUB_OUTPUT"
echo "crate_dir=${crate_dir}" >> "$GITHUB_OUTPUT"
echo "packaging_dir=${packaging_dir}" >> "$GITHUB_OUTPUT"
echo "crate=${crate}" >> "$GITHUB_OUTPUT"
- uses: ./.github/actions/install-rocksdb
- uses: ./.github/actions/install-protobuf-compiler
- name: Build and Publish Packages
uses: ./.github/actions/debian
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
gitref: ${{ inputs.version }}
crate_dir: ${{ steps.resolve.outputs.crate_dir }}
package: ${{ steps.resolve.outputs.package }}
packaging_dir: ${{ steps.resolve.outputs.packaging_dir }}
crate: ${{ steps.resolve.outputs.crate }}
arch: ${{ matrix.arch }}