Skip to content

Commit d83be17

Browse files
authored
chore: Commits for 2.5.0 (#2330)
2 parents f04d2a9 + b6c1e25 commit d83be17

File tree

229 files changed

+5443
-4061
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

229 files changed

+5443
-4061
lines changed

.github/actions/build_docker_image/action.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ inputs:
1717
platforms:
1818
description: Platforms to build the image for (e.g. linux/amd64,linux/arm64)
1919
required: true
20+
build_args:
21+
description: List of build-time variables
22+
required: false
2023

2124
dockerhub_repo:
2225
description: DockerHub repository name
@@ -61,13 +64,4 @@ runs:
6164
platforms: ${{ inputs.platforms }}
6265
push: ${{ inputs.push_image == 'true' }}
6366
tags: ${{ steps.meta.outputs.tags }}
64-
65-
- name: Update DockerHub description
66-
if: ${{ inputs.push_image == 'true' && inputs.dockerhub_repo != '' }}
67-
uses: peter-evans/dockerhub-description@432a30c9e07499fd01da9f8a49f0faf9e0ca5b77 # v4.0.2
68-
with:
69-
username: ${{ env.DOCKERHUB_USER }}
70-
password: ${{ env.DOCKERHUB_PW }}
71-
repository: ${{ inputs.dockerhub_repo }}
72-
short-description: ${{ inputs.dockerhub_description }}
73-
readme-filepath: ${{ inputs.directory }}/README.md
67+
build-args: ${{ inputs.build_args }}

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: Build
22

33
on:
44
push:
5-
branches: [master, release/*, develop]
5+
branches: [release/*, develop]
66
pull_request:
7-
branches: [master, release/*, develop]
7+
branches: [release/*, develop]
88
paths:
99
- .github/workflows/build.yml
1010

.github/workflows/clang-tidy.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ concurrency:
1818

1919
env:
2020
CONAN_PROFILE: clang
21+
LLVM_TOOLS_VERSION: 20
2122

2223
jobs:
2324
clang_tidy:
@@ -61,7 +62,7 @@ jobs:
6162
shell: bash
6263
id: run_clang_tidy
6364
run: |
64-
run-clang-tidy-19 -p build -j "${{ steps.number_of_threads.outputs.threads_number }}" -fix -quiet 1>output.txt
65+
run-clang-tidy-${{ env.LLVM_TOOLS_VERSION }} -p build -j "${{ steps.number_of_threads.outputs.threads_number }}" -fix -quiet 1>output.txt
6566
6667
- name: Fix local includes and clang-format style
6768
if: ${{ steps.run_clang_tidy.outcome != 'success' }}

.github/workflows/docs.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ jobs:
2222
with:
2323
lfs: true
2424

25+
- name: Prepare runner
26+
uses: ./.github/actions/prepare_runner
27+
with:
28+
disable_ccache: true
29+
2530
- name: Create build directory
2631
run: mkdir build_docs
2732

.github/workflows/nightly.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,7 @@ jobs:
9696
uses: ./.github/workflows/release_impl.yml
9797
with:
9898
overwrite_release: true
99+
prerelease: true
99100
title: "Clio development (nightly) build"
100101
version: nightly
101102
header: >

.github/workflows/pre-commit-autoupdate.yml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,25 @@ jobs:
2626
- run: pre-commit autoupdate --freeze
2727
- run: pre-commit run --all-files || true
2828

29+
- uses: crazy-max/ghaction-import-gpg@e89d40939c28e39f97cf32126055eeae86ba74ec # v6.3.0
30+
if: github.event_name != 'pull_request'
31+
with:
32+
gpg_private_key: ${{ secrets.ACTIONS_GPG_PRIVATE_KEY }}
33+
passphrase: ${{ secrets.ACTIONS_GPG_PASSPHRASE }}
34+
git_user_signingkey: true
35+
git_commit_gpgsign: true
36+
2937
- uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
3038
if: always()
3139
env:
3240
GH_REPO: ${{ github.repository }}
3341
GH_TOKEN: ${{ github.token }}
3442
with:
43+
commit-message: "style: Update pre-commit hooks"
44+
committer: Clio CI <[email protected]>
3545
branch: update/pre-commit-hooks
46+
branch-suffix: timestamp
47+
delete-branch: true
3648
title: "style: Update pre-commit hooks"
37-
commit-message: "style: Update pre-commit hooks"
3849
body: Update versions of pre-commit hooks to latest version.
3950
reviewers: "godexsoft,kuznetsss,PeterChen13579,mathbunnyru"

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@ name: Run pre-commit hooks
33
on:
44
pull_request:
55
push:
6-
branches:
7-
- develop
6+
branches: [develop]
87
workflow_dispatch:
98

109
jobs:

.github/workflows/release.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ jobs:
4848
uses: ./.github/workflows/release_impl.yml
4949
with:
5050
overwrite_release: false
51+
prerelease: ${{ contains(github.ref_name, '-') }}
5152
title: "${{ github.ref_name}}"
5253
version: "${{ github.ref_name }}"
5354
header: >

.github/workflows/release_impl.yml

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
required: true
99
type: boolean
1010

11+
prerelease:
12+
description: "Create a prerelease"
13+
required: true
14+
type: boolean
15+
1116
title:
1217
description: "Release title"
1318
required: true
@@ -25,12 +30,12 @@ on:
2530

2631
generate_changelog:
2732
description: "Generate changelog"
28-
required: false
33+
required: true
2934
type: boolean
3035

3136
draft:
3237
description: "Create a draft release"
33-
required: false
38+
required: true
3439
type: boolean
3540

3641
jobs:
@@ -69,9 +74,9 @@ jobs:
6974
shell: bash
7075
if: ${{ inputs.generate_changelog }}
7176
run: |
72-
LAST_TAG=$(gh release view --json tagName -q .tagName)
73-
LAST_TAG_COMMIT=$(git rev-parse $LAST_TAG)
74-
BASE_COMMIT=$(git merge-base HEAD $LAST_TAG_COMMIT)
77+
LAST_TAG="$(gh release view --json tagName -q .tagName)"
78+
LAST_TAG_COMMIT="$(git rev-parse $LAST_TAG)"
79+
BASE_COMMIT="$(git merge-base HEAD $LAST_TAG_COMMIT)"
7580
git-cliff "${BASE_COMMIT}..HEAD" --ignore-tags "nightly|-b"
7681
cat CHANGELOG.md >> "${RUNNER_TEMP}/release_notes.md"
7782
@@ -108,10 +113,10 @@ jobs:
108113
if: ${{ github.event_name != 'pull_request' }}
109114
shell: bash
110115
run: |
111-
gh release create ${{ inputs.version }} \
112-
${{ inputs.overwrite_release && '--prerelease' || '' }} \
116+
gh release create "${{ inputs.version }}" \
117+
${{ inputs.prerelease && '--prerelease' || '' }} \
113118
--title "${{ inputs.title }}" \
114-
--target $GITHUB_SHA \
119+
--target "${GITHUB_SHA}" \
115120
${{ inputs.draft && '--draft' || '' }} \
116121
--notes-file "${RUNNER_TEMP}/release_notes.md" \
117122
./release_artifacts/clio_server*

.github/workflows/sanitizers.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,20 +37,25 @@ jobs:
3737
strategy:
3838
fail-fast: false
3939
matrix:
40-
compiler: ["gcc", "clang"]
41-
sanitizer_ext: [".asan", ".tsan", ".ubsan"]
40+
compiler: [gcc, clang]
41+
sanitizer_ext: [.asan, .tsan, .ubsan]
42+
build_type: [Release, Debug]
4243
exclude:
4344
# Currently, clang.tsan unit tests hang
4445
- compiler: clang
4546
sanitizer_ext: .tsan
47+
build_type: Release
48+
- compiler: clang
49+
sanitizer_ext: .tsan
50+
build_type: Debug
4651

4752
uses: ./.github/workflows/build_and_test.yml
4853
with:
4954
runs_on: heavy
5055
container: '{ "image": "ghcr.io/xrplf/clio-ci:latest" }'
5156
disable_cache: true
5257
conan_profile: ${{ matrix.compiler }}${{ matrix.sanitizer_ext }}
53-
build_type: Release
58+
build_type: ${{ matrix.build_type }}
5459
static: false
5560
run_unit_tests: true
5661
run_integration_tests: false

0 commit comments

Comments
 (0)