Skip to content
Merged
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
10 changes: 9 additions & 1 deletion .bazelrc
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,12 @@ common --registry=https://raw.githubusercontent.com/eclipse-score/bazel_registry
common --registry=https://bcr.bazel.build
common --credential_helper=*.qnx.com=%workspace%/scripts/internal/qnx_creds.py

build:build_qnx8 --platforms=@score_toolchains_rust//platforms:aarch64-unknown-qnx8_0
build:build_qnx8 --platforms=@score_bazel_platforms//:arm64-qnx8_0
build:build_qnx8 --extra_toolchains=@toolchains_qnx_qcc//:qcc_aarch64
build:build_qnx8 --extra_toolchains=@score_toolchains_rust//toolchains/aarch64-unknown-qnx8_0:toolchain_aarch64_qnx8_0
build:build_qnx8 --extra_toolchains=@score_toolchains_rust//toolchains/x86_64-unknown-linux-gnu:toolchain_x86_64_linux
build:build_qnx8 --extra_toolchains=@toolchains_qnx_ifs//:ifs_x86_64
build:build_qnx8 --extra_toolchains=@toolchains_qnx_ifs//:ifs_aarch64

common --extra_toolchains=@gcc_toolchain//:host_gcc_12
common --extra_toolchains=@score_toolchains_rust//toolchains/x86_64-unknown-linux-gnu:toolchain_x86_64_linux
34 changes: 34 additions & 0 deletions .github/workflows/build_qnx8.yml
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 }}
36 changes: 7 additions & 29 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,23 @@ bazel_dep(name = "buildifier_prebuilt", version = "7.3.1")
bazel_dep(name = "platforms", version = "1.0.0")

# S-CORE process rules
bazel_dep(name = "score_bazel_platforms", version = "0.0.2")
bazel_dep(name = "score_bazel_platforms", version = "0.0.3")
bazel_dep(name = "score_docs_as_code", version = "2.0.2")
bazel_dep(name = "score_tooling", version = "1.0.4")
bazel_dep(name = "score_rust_policies", version = "0.0.3")

bazel_dep(name = "score_process", version = "1.3.1", dev_dependency = True)
bazel_dep(name = "score_platform", version = "0.4.2", dev_dependency = True) # This is main score repo
bazel_dep(name = "score_process", version = "1.4.0", dev_dependency = True)
bazel_dep(name = "score_platform", version = "0.5.1", dev_dependency = True) # This is main score repo
bazel_dep(name = "score_virtualization", version = "0.0.1", dev_dependency = True)

# Toolchains and extensions
bazel_dep(name = "score_toolchains_gcc", version = "0.4", dev_dependency = True)
bazel_dep(name = "score_toolchains_qnx", version = "0.0.2", dev_dependency = True)
bazel_dep(name = "score_toolchains_gcc", version = "0.5", dev_dependency = True)
bazel_dep(name = "score_toolchains_qnx", version = "0.0.6", dev_dependency = True)
bazel_dep(name = "rust_qnx8_toolchain", version = "1.2.0", dev_dependency = True)
bazel_dep(name = "score_toolchains_rust", version = "0.1.1", dev_dependency = True)

# S-CORE crates
bazel_dep(name = "score_crates")
bazel_dep(name = "score_crates", version = "0.0.6")

# Overrides
git_override(
Expand All @@ -53,7 +53,7 @@ git_override(

git_override(
module_name = "score_toolchains_rust",
commit = "6651945b4ba8e7c342d9740e9cb2d37842f56261",
commit = "bcf8e5364f72cf136ec81960350a82e2b5c45449",
remote = "https://github.com/eclipse-score/toolchains_rust.git",
)

Expand All @@ -63,14 +63,6 @@ git_override(
remote = "https://github.com/qorix-group/score_virtualization.git",
)

git_override(
module_name = "score_crates",
# TODO: 'commit' and 'remote' must be updated once required changes are merged.
# https://github.com/eclipse-score/score-crates/pull/16
commit = "f0bf4bdf98d8a8ad548256ab24dc08f9ba8f04aa",
remote = "https://github.com/qorix-group/score-crates.git",
)

archive_override(
module_name = "rust_qnx8_toolchain",
strip_prefix = "qnx8",
Expand Down Expand Up @@ -108,17 +100,3 @@ use_repo(python)
use_repo(toolchains_qnx, "toolchains_qnx_sdp")
use_repo(toolchains_qnx, "toolchains_qnx_qcc")
use_repo(toolchains_qnx, "toolchains_qnx_ifs")

# Registers the custom Rust toolchain wired to @qnx_rust
register_toolchains(
"@toolchains_qnx_qcc//:qcc_aarch64",
"@score_toolchains_rust//toolchains/aarch64-unknown-qnx8_0:toolchain_aarch64_qnx8_0",
"@score_toolchains_rust//toolchains/x86_64-unknown-linux-gnu:toolchain_x86_64_linux",
dev_dependency = True,
)

register_toolchains(
"@toolchains_qnx_ifs//:ifs_x86_64",
"@toolchains_qnx_ifs//:ifs_aarch64",
dev_dependency = True,
)
1 change: 1 addition & 0 deletions docs/baselibs_rust/containers_rust/requirements/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Requirements
:id: doc__containers_rust_lib_requirements
:status: draft
:safety: ASIL_B
:security: NO
:realizes: wp__requirements_comp
:tags: requirements, containers_rust_library

Expand Down
1 change: 1 addition & 0 deletions docs/features/baselibs_rust/requirements/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ Requirements
:id: doc__baselibs_rust_requirements
:status: draft
:safety: ASIL_B
:security: NO
:realizes: wp__requirements_feat

.. feat_req:: Core Software Utilities
Expand Down
Loading
Loading