Skip to content

Commit

Permalink
Fix actions
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixS90 committed Jun 7, 2024
1 parent 7fe35a9 commit b70fac9
Show file tree
Hide file tree
Showing 7 changed files with 107 additions and 7 deletions.
75 changes: 75 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# Visual Studio generated .editorconfig file with C++ settings.
root = true

[*.{c++,cc,cpp,cppm,cxx,h,h++,hh,hpp,hxx,inl,ipp,ixx,tlh,tli}]

indent_style = space
indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = false
charset = utf-8

# Visual C++ Code Style settings

cpp_generate_documentation_comments = doxygen_triple_slash

# Visual C++ Formatting settings

cpp_indent_braces = false
cpp_indent_multi_line_relative_to = statement_begin
cpp_indent_within_parentheses = indent
cpp_indent_preserve_within_parentheses = true
cpp_indent_case_contents = true
cpp_indent_case_labels = true
cpp_indent_case_contents_when_block = false
cpp_indent_lambda_braces_when_parameter = true
cpp_indent_goto_labels = one_left
cpp_indent_preprocessor = leftmost_column
cpp_indent_access_specifiers = false
cpp_indent_namespace_contents = true
cpp_indent_preserve_comments = false
cpp_new_line_before_open_brace_namespace = ignore
cpp_new_line_before_open_brace_type = ignore
cpp_new_line_before_open_brace_function = ignore
cpp_new_line_before_open_brace_block = ignore
cpp_new_line_before_open_brace_lambda = ignore
cpp_new_line_scope_braces_on_separate_lines = true
cpp_new_line_close_brace_same_line_empty_type = false
cpp_new_line_close_brace_same_line_empty_function = false
cpp_new_line_before_catch = true
cpp_new_line_before_else = true
cpp_new_line_before_while_in_do_while = true
cpp_space_before_function_open_parenthesis = remove
cpp_space_within_parameter_list_parentheses = false
cpp_space_between_empty_parameter_list_parentheses = false
cpp_space_after_keywords_in_control_flow_statements = true
cpp_space_within_control_flow_statement_parentheses = false
cpp_space_before_lambda_open_parenthesis = false
cpp_space_within_cast_parentheses = false
cpp_space_after_cast_close_parenthesis = false
cpp_space_within_expression_parentheses = false
cpp_space_before_block_open_brace = true
cpp_space_between_empty_braces = false
cpp_space_before_initializer_list_open_brace = false
cpp_space_within_initializer_list_braces = true
cpp_space_preserve_in_initializer_list = true
cpp_space_before_open_square_bracket = false
cpp_space_within_square_brackets = false
cpp_space_before_empty_square_brackets = false
cpp_space_between_empty_square_brackets = false
cpp_space_group_square_brackets = true
cpp_space_within_lambda_brackets = false
cpp_space_between_empty_lambda_brackets = false
cpp_space_before_comma = false
cpp_space_after_comma = true
cpp_space_remove_around_member_operators = true
cpp_space_before_inheritance_colon = true
cpp_space_before_constructor_colon = true
cpp_space_remove_before_semicolon = true
cpp_space_after_semicolon = true
cpp_space_remove_around_unary_operator = true
cpp_space_around_binary_operator = insert
cpp_space_around_assignment_operator = insert
cpp_space_pointer_reference_alignment = left
cpp_space_around_ternary_operator = insert
cpp_wrap_preserve_blocks = one_liners
5 changes: 5 additions & 0 deletions .github/actions/steps_psr/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@ inputs:
required: true
PkgRootFolder:
required: true
outputs:
# https://docs.github.com/en/actions/creating-actions/creating-a-composite-action
pypi_released: ${{ steps.pythonsemanticrelease.outputs.released }}
pypi_version: ${{ steps.pythonsemanticrelease.outputs.version }}
pypi_tag: ${{ steps.pythonsemanticrelease.outputs.tag }}
runs:
using: composite
steps:
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/build-reusable.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,17 +39,18 @@ jobs:
name: Static Analysis and Tests
runs-on: windows-2019
outputs:
pypi_released: ${{ steps.pythonsemanticrelease.outputs.released }}
pypi_version: ${{ steps.pythonsemanticrelease.outputs.version }}
pypi_tag: ${{ steps.pythonsemanticrelease.outputs.tag }}
pypi_released: ${{ steps.psr.outputs.pypi_released }}
pypi_version: ${{ steps.psr.outputs.pypi_version }}
pypi_tag: ${{ steps.psr.outputs.pypi_tag }}
steps:
- uses: actions/checkout@v4.1.0
with:
lfs: true
submodules: recursive
# Python Semantic Release needs access to the full history to determine whether a release should be made.
fetch-depth: 0
- uses: "./.github/actions/steps_psr"
- id: psr
uses: "./.github/actions/steps_psr"
with:
PyVersionLatest: "${{inputs.PyVersionLatest}}"
PkgRootFolder: "${{ github.workspace }}/${{inputs.PkgRootFolder}}"
Expand Down
3 changes: 1 addition & 2 deletions .github/workflows/mega-linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ jobs:
- name: MegaLinter
# You can override MegaLinter flavor used to have faster performances
# More info at https://megalinter.io/flavors/
# Only using formatters since the rest is checked in build.yml
uses: oxsecurity/megalinter/flavors/formatters@v7
uses: oxsecurity/megalinter/flavors/all@v7
env:
# All available variables are described in documentation
# https://megalinter.io/configuration/
Expand Down
17 changes: 17 additions & 0 deletions .mega-linter.yml
Original file line number Diff line number Diff line change