Skip to content

Commit f2c4275

Browse files
authored
ci: Put debian package to release (#2850)
1 parent e9b98cf commit f2c4275

File tree

4 files changed

+47
-24
lines changed

4 files changed

+47
-24
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -92,24 +92,6 @@ jobs:
9292
secrets:
9393
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
9494

95-
package:
96-
name: Build packages
97-
98-
uses: ./.github/workflows/reusable-build.yml
99-
with:
100-
runs_on: heavy
101-
container: '{ "image": "ghcr.io/xrplf/clio-ci:067449c3f8ae6755ea84752ea2962b589fe56c8f" }'
102-
conan_profile: gcc
103-
build_type: Release
104-
download_ccache: true
105-
upload_ccache: false
106-
code_coverage: false
107-
static: true
108-
upload_clio_server: false
109-
package: true
110-
targets: package
111-
analyze_build_time: false
112-
11395
check_config:
11496
name: Check Config Description
11597
needs: build-and-test

.github/workflows/nightly.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,24 @@ jobs:
6868
download_ccache: false
6969
upload_ccache: false
7070

71+
package:
72+
name: Build debian package
73+
74+
uses: ./.github/workflows/reusable-build.yml
75+
with:
76+
runs_on: heavy
77+
container: '{ "image": "ghcr.io/xrplf/clio-ci:067449c3f8ae6755ea84752ea2962b589fe56c8f" }'
78+
conan_profile: gcc
79+
build_type: Release
80+
download_ccache: false
81+
upload_ccache: false
82+
code_coverage: false
83+
static: true
84+
upload_clio_server: false
85+
package: true
86+
targets: package
87+
analyze_build_time: false
88+
7189
analyze_build_time:
7290
name: Analyze Build Time
7391

@@ -109,7 +127,7 @@ jobs:
109127
echo "date=$(date +'%Y%m%d')" >> $GITHUB_OUTPUT
110128
111129
nightly_release:
112-
needs: [build-and-test, get_date]
130+
needs: [build-and-test, package, get_date]
113131
uses: ./.github/workflows/reusable-release.yml
114132
with:
115133
delete_pattern: "nightly-*"

.github/workflows/release.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,26 @@ jobs:
4545
upload_ccache: false
4646
expected_version: ${{ github.event_name == 'push' && github.ref_name || '' }}
4747

48+
package:
49+
name: Build debian package
50+
51+
uses: ./.github/workflows/reusable-build.yml
52+
with:
53+
runs_on: heavy
54+
container: '{ "image": "ghcr.io/xrplf/clio-ci:067449c3f8ae6755ea84752ea2962b589fe56c8f" }'
55+
conan_profile: gcc
56+
build_type: Release
57+
download_ccache: false
58+
upload_ccache: false
59+
code_coverage: false
60+
static: true
61+
upload_clio_server: false
62+
package: true
63+
targets: package
64+
analyze_build_time: false
65+
4866
release:
49-
needs: build-and-test
67+
needs: [build-and-test, package]
5068
uses: ./.github/workflows/reusable-release.yml
5169
with:
5270
delete_pattern: ""

.github/workflows/reusable-release.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,14 @@ jobs:
6969
path: release_artifacts
7070
pattern: clio_server_*
7171

72+
- name: Prepare release artifacts
73+
run: .github/scripts/prepare-release-artifacts.sh release_artifacts
74+
75+
- uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53 # v6.0.0
76+
with:
77+
path: release_artifacts
78+
pattern: clio_deb_package_*
79+
7280
- name: Create release notes
7381
env:
7482
RELEASE_HEADER: ${{ inputs.header }}
@@ -86,9 +94,6 @@ jobs:
8694
git-cliff "${BASE_COMMIT}..HEAD" --ignore-tags "nightly|-b|-rc"
8795
cat CHANGELOG.md >> "${RUNNER_TEMP}/release_notes.md"
8896
89-
- name: Prepare release artifacts
90-
run: .github/scripts/prepare-release-artifacts.sh release_artifacts
91-
9297
- name: Upload release notes
9398
uses: actions/upload-artifact@330a01c490aca151604b8cf639adc76d48f6c5d4 # v5.0.0
9499
with:
@@ -122,4 +127,4 @@ jobs:
122127
--target "${GITHUB_SHA}" \
123128
${DRAFT_OPTION} \
124129
--notes-file "${RUNNER_TEMP}/release_notes.md" \
125-
./release_artifacts/clio_server*
130+
./release_artifacts/clio_*

0 commit comments

Comments
 (0)