Publish Debian Package #7
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Publish Debian Package | |
| on: | |
| workflow_dispatch: | |
| inputs: | |
| component: | |
| description: "Component to publish" | |
| required: true | |
| type: choice | |
| options: | |
| - network-monitor | |
| - node | |
| - 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@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1 | |
| 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 }} |