Skip to content

Commit a2dc300

Browse files
authored
Merge pull request #3 from eclipse-score/lt_qnx_build
Add actions to build QNX config
2 parents f303878 + fa34a74 commit a2dc300

File tree

2 files changed

+71
-0
lines changed

2 files changed

+71
-0
lines changed
+44
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2025 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Apache License Version 2.0 which is available at
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# SPDX-License-Identifier: Apache-2.0
12+
# *******************************************************************************
13+
name: Toolchains QNX Tests CI
14+
on:
15+
pull_request:
16+
types: [opened, reopened, synchronize]
17+
jobs:
18+
code:
19+
runs-on: ubuntu-latest
20+
defaults:
21+
run:
22+
working-directory: ./tests
23+
steps:
24+
- name: Checkout repository
25+
uses: actions/[email protected]
26+
- name: Setup Bazel
27+
uses: bazel-contrib/[email protected]
28+
- name: Setup QNX License
29+
env:
30+
SCORE_QNX_LICENSE: ${{ secrets.SCORE_QNX_LICENSE }}
31+
run: |
32+
mkdir -p /opt/score_qnx/license
33+
echo "${SCORE_QNX_LICENSE}" | base64 --decode > /opt/score_qnx/license/licenses
34+
- name: Run build
35+
env:
36+
SCORE_QNX_LOGIN: ${{ secrets.SCORE_QNX_USER }}
37+
SCORE_QNX_PASSWORD: ${{ secrets.SCORE_QNX_PASSWORD }}
38+
run: |
39+
bazel build //... --config=x86_64_qnx --credential_helper=*.qnx.com=${{ github.workspace }}/tools/qnx_credential_helper.py
40+
- name: Cleanup QNX License
41+
if: always()
42+
run: |
43+
rm -rf /opt/score_qnx
44+
rm -rf "${HOME}/.cache/bazel"

.github/workflows/toolchains-qnx.yml

+27
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2025 Contributors to the Eclipse Foundation
3+
#
4+
# See the NOTICE file(s) distributed with this work for additional
5+
# information regarding copyright ownership.
6+
#
7+
# This program and the accompanying materials are made available under the
8+
# terms of the Apache License Version 2.0 which is available at
9+
# https://www.apache.org/licenses/LICENSE-2.0
10+
#
11+
# SPDX-License-Identifier: Apache-2.0
12+
# *******************************************************************************
13+
name: Toolchains QNX CI
14+
on:
15+
pull_request:
16+
types: [opened, reopened, synchronize]
17+
jobs:
18+
code:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout repository
22+
uses: actions/[email protected]
23+
- name: Setup Bazel
24+
uses: bazel-contrib/[email protected]
25+
- name: Run build
26+
run: |
27+
bazel build //...

0 commit comments

Comments
 (0)