Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# SPDX-FileCopyrightText: 2026 Copyright (c) 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

common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry/main/
common --registry=https://bcr.bazel.build
common --experimental_isolated_extension_usages

build --incompatible_strict_action_env
1 change: 1 addition & 0 deletions .bazelversion
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
8.6.0
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
SPDX-FileCopyrightText: 2025 Copyright (c) Contributors to the Eclipse Foundation
SPDX-FileCopyrightText: 2026 Copyright (c) Contributors to the Eclipse Foundation

See the NOTICE file(s) distributed with this work for additional
information regarding copyright ownership.
Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,33 @@ concurrency:
cancel-in-progress: true

jobs:
bazel:
name: Bazel (Ubuntu)
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
submodules: false
- name: Verify mbedTLS revision consistency
run: python3 bazel/check_mbedtls_revision.py
- name: Install Bazelisk
uses: bazelbuild/setup-bazelisk@v3
- name: Build mbedTLS library
run: bazel build //:cda_mbedtls
- name: Build reference binary
run: bazel build //:opensovd-cda
- name: Query targets
run: bazel query //...
- name: Verify mbedTLS graph excludes OpenSSL
run: |
openssl_targets="$(bazel cquery 'filter("openssl", deps(//:cda_mbedtls))' --output=label)"
if [[ -n "${openssl_targets}" ]]; then
echo "::error::mbedTLS target graph contains OpenSSL targets:"
echo "${openssl_targets}"
exit 1
fi

features:
runs-on: ubuntu-latest
env:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ build
_build
__pycache__
/target
/bazel-*

# created by plantuml?
?
Expand Down
1 change: 0 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ repos:
args:
- --allowed-chars=µ,§
- id: no-banner-comment-check
exclude: ^comm-mbedtls/
- id: validate-cargo-lints
- id: cargo-fmt
- id: clippy
Expand Down
27 changes: 27 additions & 0 deletions BUILD.bazel
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# SPDX-FileCopyrightText: 2026 Copyright (c) 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

exports_files([
"Cargo.lock",
"Cargo.toml",
])

alias(
name = "cda_mbedtls",
actual = "//cda-main:opensovd_cda_lib",
visibility = ["//visibility:public"],
)

alias(
name = "opensovd-cda",
actual = "//cda-main:opensovd-cda",
visibility = ["//visibility:public"],
)
Loading
Loading