-
Notifications
You must be signed in to change notification settings - Fork 14
[HmLib] Enable Rust infra #24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
FScholPer
merged 8 commits into
eclipse-score:main
from
qorix-group:toun_health_lib_bazel_env
Jan 8, 2026
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
f829c69
Git workflows, bazel and folders for health lib
TomaUngureanu b394574
Addresses review findings
TomaUngureanu a5cb639
Fixes copyright check issues
TomaUngureanu 349d32c
Adds qnx8 build
TomaUngureanu 5f92238
Fixes qnx8_build issues and review findings
TomaUngureanu 80ce871
Fix workflows
pawelrutkaq 8d8f42b
Fix demo example for rust
pawelrutkaq 3da5095
Fix copyrights
pawelrutkaq File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1 +1 @@ | ||
| 8.3.0 | ||
| 8.4.2 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2025 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
|
|
||
| name: Bazel Build | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, reopened, synchronize] | ||
| merge_group: | ||
| types: [checks_requested] | ||
|
|
||
| jobs: | ||
| build: | ||
| name: Build Bazel Code | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4.2.2 | ||
|
|
||
| - name: Setup Bazel | ||
| uses: bazel-contrib/setup-bazel@0.15.0 | ||
| with: | ||
| bazelisk-version: 1.26.0 # newest LTS before 1 Jun 2025 | ||
| disk-cache: true | ||
| repository-cache: true | ||
| bazelisk-cache: true | ||
|
|
||
| - name: Bazel info (discover paths) | ||
| id: bazel-info | ||
| run: | | ||
| echo "BAZEL_OUTPUT_BASE=$(bazel info output_base)" >> $GITHUB_ENV | ||
| echo "BAZEL_USER_ROOT=$(bazel info output_user_root)" >> $GITHUB_ENV | ||
| echo "BAZEL_REPO_CACHE=$(bazel info repository_cache)" >> $GITHUB_ENV | ||
| bazel info | ||
|
|
||
| - name: Cache Bazel output base | ||
| uses: actions/cache@v4 | ||
| with: | ||
| path: | | ||
| ${{ env.BAZEL_OUTPUT_BASE }}/action_cache | ||
| ${{ env.BAZEL_OUTPUT_BASE }}/bazel-out | ||
| ${{ env.BAZEL_OUTPUT_BASE }}/external | ||
| ${{ env.BAZEL_OUTPUT_BASE }}/execroot | ||
| key: bazel-ob-v2-${{ runner.os }}-${{ hashFiles('.bazelversion', 'MODULE.bazel', 'MODULE.bazel.lock', '**/*.bzl', 'Cargo.lock') }} | ||
| restore-keys: | | ||
| bazel-ob-v2-${{ runner.os }}- | ||
|
|
||
| - name: Build with Bazel | ||
| run: | | ||
| bazel build //... |
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2025 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
|
|
||
| name: QNX8 Build | ||
| on: | ||
| pull_request_target: | ||
| types: [opened, reopened, synchronize] | ||
| merge_group: | ||
| types: [checks_requested] | ||
| jobs: | ||
| qnx-build: | ||
| uses: eclipse-score/cicd-workflows/.github/workflows/qnx-build.yml@main | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| with: | ||
| bazel-target: '//src/...' | ||
| bazel-config: 'build_qnx8' | ||
| credential-helper: 'scripts/internal/qnx_creds.py' | ||
| environment-name: 'workflow-approval' | ||
| secrets: | ||
| score-qnx-license: ${{ secrets.SCORE_QNX_LICENSE }} | ||
| score-qnx-user: ${{ secrets.SCORE_QNX_USER }} | ||
| score-qnx-password: ${{ secrets.SCORE_QNX_PASSWORD }} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,55 @@ | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2025 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
|
|
||
| name: clippy check | ||
|
|
||
| on: | ||
| pull_request: | ||
| branches: [main, development] | ||
| types: [opened, ready_for_review, reopened, synchronize] | ||
|
|
||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| jobs: | ||
| lint-clippy: | ||
| timeout-minutes: 6 # 6 minutes is the maximum allowed for a cold run | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v3 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Cache Cargo registry, git deps & target | ||
| uses: actions/cache@v3 | ||
| with: | ||
| path: | | ||
| ~/.cargo/registry | ||
| ~/.cargo/git | ||
| target | ||
| key: ${{ runner.os }}-cargo-lint-clippy-${{ hashFiles('**/Cargo.lock') }} | ||
| restore-keys: | | ||
| ${{ runner.os }}-cargo-lint-clippy- | ||
|
|
||
| - name: Install Rust toolchain | ||
| uses: actions-rs/toolchain@v1 | ||
| with: | ||
| profile: minimal | ||
| toolchain: 1.90.0 | ||
| override: true | ||
| components: clippy | ||
|
|
||
| - name: check clippy errors | ||
| uses: actions-rs/cargo@v1 | ||
| with: | ||
| command: clippy | ||
| args: --all-features --all-targets --workspace -- -D warnings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,27 @@ | ||
| # ******************************************************************************* | ||
| # Copyright (c) 2025 Contributors to the Eclipse Foundation | ||
| # | ||
| # See the NOTICE file(s) distributed with this work for additional | ||
| # information regarding copyright ownership. | ||
| # | ||
| # This program and the accompanying materials are made available under the | ||
| # terms of the Apache License Version 2.0 which is available at | ||
| # https://www.apache.org/licenses/LICENSE-2.0 | ||
| # | ||
| # SPDX-License-Identifier: Apache-2.0 | ||
| # ******************************************************************************* | ||
|
|
||
| name: Tests | ||
| on: | ||
| pull_request_target: | ||
| types: [opened, reopened, synchronize] | ||
| merge_group: | ||
| types: [checks_requested] | ||
| jobs: | ||
| test: | ||
| uses: eclipse-score/cicd-workflows/.github/workflows/test.yml@main | ||
| permissions: | ||
| contents: read | ||
| pull-requests: read | ||
| with: | ||
| bazel-target: 'test //src/...' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,9 +1,74 @@ | ||
| demo/tmp | ||
| demo/config/tmp | ||
| # Prerequisites | ||
| *.d | ||
|
|
||
| # Compiled Object files | ||
| *.slo | ||
| *.lo | ||
| *.o | ||
| *.obj | ||
|
|
||
| # Precompiled Headers | ||
| *.gch | ||
| *.pch | ||
|
|
||
| # Compiled Dynamic libraries | ||
| *.so | ||
| *.dylib | ||
| *.dll | ||
|
|
||
| # Fortran module files | ||
| *.mod | ||
| *.smod | ||
|
|
||
| # Compiled Static libraries | ||
| *.lai | ||
| *.la | ||
| *.a | ||
| *.lib | ||
|
|
||
| # Executables | ||
| *.exe | ||
| *.out | ||
| *.app | ||
|
|
||
|
|
||
| # Bazel | ||
| bazel-* | ||
| .vscode | ||
| rust-project.json | ||
| MODULE.bazel.lock | ||
TomaUngureanu marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| user.bazelrc | ||
|
|
||
| # Ruff | ||
| .ruff_cache | ||
|
|
||
| # docs:incremental and docs:ide_support build artifacts | ||
| /_build | ||
|
|
||
| # Vale - editorial style guide | ||
| .vale.ini | ||
| styles/ | ||
|
|
||
| # direnv - folder-specific bash configuration | ||
| .envrc | ||
|
|
||
| # Python | ||
| .venv | ||
| __pycache__/ | ||
| /.coverage | ||
|
|
||
| # Rust | ||
| debug/ | ||
| target/ | ||
| MODULE.lock.bazel | ||
| _build/ | ||
| /build/ | ||
|
|
||
| *~ | ||
| .*swp | ||
| .*swo | ||
|
|
||
| # pytest reports | ||
| tests/**/*.html | ||
| tests/**/*.xml | ||
|
|
||
| # VS Code files | ||
| .vscode* | ||
| *.orig | ||
| .venv_docs | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/usr/bin/env bash | ||
|
|
||
pawelrutkaq marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| bazel run @score_tooling//format_checker:rustfmt_with_policies | ||
pawelrutkaq marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.