|
| 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 | + |
| 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" |
0 commit comments