Skip to content

Commit 4724ac6

Browse files
authored
Merge branch 'develop' into bthomee/semgrep
2 parents 10c294f + 89fbcbf commit 4724ac6

File tree

431 files changed

+15752
-11139
lines changed

Some content is hidden

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

431 files changed

+15752
-11139
lines changed

.clang-format

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ IndentFunctionDeclarationAfterType: false
4949
IndentWidth: 4
5050
IndentWrappedFunctionNames: false
5151
IndentRequiresClause: true
52+
InsertNewlineAtEOF: true
5253
RequiresClausePosition: OwnLine
5354
KeepEmptyLinesAtTheStartOfBlocks: false
5455
MaxEmptyLinesToKeep: 1

.cmake-format.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ format:
5454
_help_max_pargs_hwrap:
5555
- If a positional argument group contains more than this many
5656
- arguments, then force it to a vertical layout.
57-
max_pargs_hwrap: 6
57+
max_pargs_hwrap: 5
5858
_help_max_rows_cmdline:
5959
- If a cmdline positional group consumes more than this many
6060
- lines without nesting, then invalidate the layout (and nest)
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Build clio
2+
description: Build clio in build directory
3+
4+
inputs:
5+
targets:
6+
description: Space-separated build target names
7+
default: all
8+
nproc_subtract:
9+
description: The number of processors to subtract when calculating parallelism.
10+
required: true
11+
default: "0"
12+
13+
runs:
14+
using: composite
15+
steps:
16+
- name: Get number of processors
17+
uses: XRPLF/actions/get-nproc@cf0433aa74563aead044a1e395610c96d65a37cf
18+
id: nproc
19+
with:
20+
subtract: ${{ inputs.nproc_subtract }}
21+
22+
- name: Build targets
23+
shell: bash
24+
env:
25+
CMAKE_TARGETS: ${{ inputs.targets }}
26+
run: |
27+
cd build
28+
cmake \
29+
--build . \
30+
--parallel "${{ steps.nproc.outputs.nproc }}" \
31+
--target ${CMAKE_TARGETS}

.github/actions/build_docker_image/action.yml renamed to .github/actions/build-docker-image/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,25 +34,25 @@ runs:
3434
steps:
3535
- name: Login to DockerHub
3636
if: ${{ inputs.push_image == 'true' && inputs.dockerhub_repo != '' }}
37-
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
37+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
3838
with:
3939
username: ${{ env.DOCKERHUB_USER }}
4040
password: ${{ env.DOCKERHUB_PW }}
4141

4242
- name: Login to GitHub Container Registry
4343
if: ${{ inputs.push_image == 'true' }}
44-
uses: docker/login-action@184bdaa0721073962dff0199f1fb9940f07167d1 # v3.5.0
44+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
4545
with:
4646
registry: ghcr.io
4747
username: ${{ github.repository_owner }}
4848
password: ${{ env.GITHUB_TOKEN }}
4949

50-
- uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3.6.0
50+
- uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
5151
with:
5252
cache-image: false
5353
- uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
5454

55-
- uses: docker/metadata-action@c1e51972afc2121e065aed6d45c65596fe445f3f # v5.8.0
55+
- uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0
5656
id: meta
5757
with:
5858
images: ${{ inputs.images }}

.github/actions/build_clio/action.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Cache key
2+
description: Generate cache key for ccache
3+
4+
inputs:
5+
conan_profile:
6+
description: Conan profile name
7+
required: true
8+
build_type:
9+
description: Current build type (e.g. Release, Debug)
10+
required: true
11+
default: Release
12+
code_coverage:
13+
description: Whether code coverage is on
14+
required: true
15+
default: "false"
16+
17+
outputs:
18+
key:
19+
description: Generated cache key for ccache
20+
value: ${{ steps.key_without_commit.outputs.key }}-${{ steps.git_common_ancestor.outputs.commit }}
21+
restore_keys:
22+
description: Cache restore keys for fallback
23+
value: ${{ steps.key_without_commit.outputs.key }}
24+
25+
runs:
26+
using: composite
27+
steps:
28+
- name: Find common commit
29+
id: git_common_ancestor
30+
uses: ./.github/actions/git-common-ancestor
31+
32+
- name: Set cache key without commit
33+
id: key_without_commit
34+
shell: bash
35+
env:
36+
RUNNER_OS: ${{ runner.os }}
37+
BUILD_TYPE: ${{ inputs.build_type }}
38+
CODE_COVERAGE: ${{ inputs.code_coverage == 'true' && '-code_coverage' || '' }}
39+
CONAN_PROFILE: ${{ inputs.conan_profile }}
40+
run: |
41+
echo "key=clio-ccache-${RUNNER_OS}-${BUILD_TYPE}${CODE_COVERAGE}-${CONAN_PROFILE}-develop" >> "${GITHUB_OUTPUT}"

.github/actions/cmake/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ runs:
4444
- name: Run cmake
4545
shell: bash
4646
env:
47+
BUILD_DIR: "${{ inputs.build_dir }}"
4748
BUILD_TYPE: "${{ inputs.build_type }}"
4849
SANITIZER_OPTION: |-
4950
${{ endsWith(inputs.conan_profile, '.asan') && '-Dsan=address' ||
@@ -58,12 +59,13 @@ runs:
5859
PACKAGE: "${{ inputs.package == 'true' && 'ON' || 'OFF' }}"
5960
run: |
6061
cmake \
61-
-B ${{inputs.build_dir}} \
62+
-B "${BUILD_DIR}" \
6263
-S . \
6364
-G Ninja \
6465
-DCMAKE_TOOLCHAIN_FILE:FILEPATH=build/generators/conan_toolchain.cmake \
6566
-DCMAKE_BUILD_TYPE="${BUILD_TYPE}" \
6667
"${SANITIZER_OPTION}" \
68+
-Dtests=ON \
6769
-Dintegration_tests="${INTEGRATION_TESTS}" \
6870
-Dbenchmark="${BENCHMARK}" \
6971
-Dcoverage="${COVERAGE}" \
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ runs:
2424
-j8 --exclude-throw-branches
2525
2626
- name: Archive coverage report
27-
uses: actions/upload-artifact@v4
27+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6.0.0
2828
with:
2929
name: coverage-report.xml
3030
path: build/coverage_report.xml

.github/actions/conan/action.yml

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,6 @@ inputs:
1717
description: Build type for third-party libraries and clio. Could be 'Release', 'Debug'
1818
required: true
1919
default: "Release"
20-
build_benchmark:
21-
description: Whether to build benchmark tests
22-
required: true
23-
default: "true"
2420

2521
runs:
2622
using: composite
@@ -34,16 +30,14 @@ runs:
3430
- name: Run conan
3531
shell: bash
3632
env:
37-
BUILD_BENCHMARK: "${{ inputs.build_benchmark == 'true' && 'True' || 'False' }}"
38-
BUILD_TYPE: "${{ inputs.build_type }}"
33+
BUILD_DIR: "${{ inputs.build_dir }}"
3934
CONAN_BUILD_OPTION: "${{ inputs.force_conan_source_build == 'true' && '*' || 'missing' }}"
35+
BUILD_TYPE: "${{ inputs.build_type }}"
4036
CONAN_PROFILE: "${{ inputs.conan_profile }}"
4137
run: |
4238
conan \
4339
install . \
44-
-of build \
45-
-b "$CONAN_BUILD_OPTION" \
40+
-of "${BUILD_DIR}" \
41+
-b "${CONAN_BUILD_OPTION}" \
4642
-s "build_type=${BUILD_TYPE}" \
47-
-o "&:tests=True" \
48-
-o "&:benchmark=${BUILD_BENCHMARK}" \
4943
--profile:all "${CONAN_PROFILE}"
Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,17 @@ runs:
2828
- name: Create an issue
2929
id: create_issue
3030
shell: bash
31+
env:
32+
ISSUE_BODY: ${{ inputs.body }}
33+
ISSUE_ASSIGNEES: ${{ inputs.assignees }}
34+
ISSUE_LABELS: ${{ inputs.labels }}
35+
ISSUE_TITLE: ${{ inputs.title }}
3136
run: |
32-
echo -e '${{ inputs.body }}' > issue.md
37+
echo -e "${ISSUE_BODY}" > issue.md
3338
gh issue create \
34-
--assignee '${{ inputs.assignees }}' \
35-
--label '${{ inputs.labels }}' \
36-
--title '${{ inputs.title }}' \
39+
--assignee "${ISSUE_ASSIGNEES}" \
40+
--label "${ISSUE_LABELS}" \
41+
--title "${ISSUE_TITLE}" \
3742
--body-file ./issue.md \
3843
> create_issue.log
3944
created_issue="$(sed 's|.*/||' create_issue.log)"

0 commit comments

Comments
 (0)