pr comments

This commit is contained in:
Michael Legleux
2026-04-07 23:39:57 -07:00
parent 40e70a7bac
commit 2ec02762ff
5 changed files with 24 additions and 15 deletions

View File

@@ -149,13 +149,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
sparse-checkout: |
.github/actions/generate-version
src/libxrpl/protocol/BuildInfo.cpp
- name: Generate version
id: version
uses: ./.github/actions/generate-version
package-deb:
needs: [should-run, build-test, generate-version]
if: ${{ needs.should-run.outputs.go == 'true' }}
uses: ./.github/workflows/reusable-package.yml
with:
pkg_type: deb
@@ -165,7 +168,6 @@ jobs:
package-rpm:
needs: [should-run, build-test, generate-version]
if: ${{ needs.should-run.outputs.go == 'true' }}
uses: ./.github/workflows/reusable-package.yml
with:
pkg_type: rpm

View File

@@ -45,13 +45,16 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
sparse-checkout: |
.github/actions/generate-version
src/libxrpl/protocol/BuildInfo.cpp
- name: Generate version
id: version
uses: ./.github/actions/generate-version
package-deb:
needs: [build-test, generate-version]
if: ${{ github.repository == 'XRPLF/rippled' }}
uses: ./.github/workflows/reusable-package.yml
with:
pkg_type: deb
@@ -61,7 +64,6 @@ jobs:
package-rpm:
needs: [build-test, generate-version]
if: ${{ github.repository == 'XRPLF/rippled' }}
uses: ./.github/workflows/reusable-package.yml
with:
pkg_type: rpm

View File

@@ -108,6 +108,10 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
sparse-checkout: |
.github/actions/generate-version
src/libxrpl/protocol/BuildInfo.cpp
- name: Generate version
id: version
uses: ./.github/actions/generate-version

View File

@@ -4,16 +4,12 @@ name: Package
on:
workflow_call:
inputs:
pkg_type:
description: "Package type to build: deb or rpm."
required: true
type: string
artifact_name:
description: "Name of the pre-built binary artifact to download."
description: "Name of the GitHub pre-built binary artifact to download (e.g. xrpld-ubuntu-jammy-gcc-12-amd64-release)."
required: true
type: string
version:
description: "Version string used for naming the output artifact."
container_image:
description: "Container image to use for packaging."
required: true
type: string
pkg_release:
@@ -21,8 +17,12 @@ on:
required: false
type: string
default: "1"
container_image:
description: "Container image to use for packaging."
pkg_type:
description: "Package type to build: deb or rpm."
required: true
type: string
version:
description: "Version string used for naming the output artifact."
required: true
type: string
@@ -35,7 +35,7 @@ env:
jobs:
package:
name: ${{ inputs.pkg_type }} (${{ inputs.version }})
name: "${{ inputs.pkg_type }} (${{ inputs.version }})"
permissions:
contents: read
runs-on: ["self-hosted", "Linux", "X64", "heavy"]