Skip to content
Open
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
33 changes: 22 additions & 11 deletions .github/workflows/build_qnx8.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,38 @@ name: QNX8 Build
on:
pull_request_target:
types: [opened, reopened, synchronize]
merge_group:
types: [checks_requested]
push:
branches:
- main
merge_group:
types: [checks_requested]
workflow_call:
jobs:
qnx-build:
uses: eclipse-score/cicd-workflows/.github/workflows/qnx-build.yml@c1c90b1a82a1fab0fc202979dde6686b2162d5a8 # v0.0.0
name: Build and Test ${{ matrix.bazel-config }}

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am not sure if test execution for qnx is sufficiently setup in the repo. I would assume this requires spawning a qnx qemu machine that would require more setup in the repo?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not aware that we do something special for QNX in baselibs. It should be very simple to just start tests with QEMU, everything is statically linked so no deployment of libraries is required.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

strategy:
fail-fast: false
matrix:
include:
- bazel-config: x86_64-qnx
bazel-test-target: >-
//score/...

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We should also include //examples/... there is also an automated demo scenario

- bazel-config: aarch64-qnx
bazel-test-target: >-
//score/...
extra-bazel-test-flags: "--test_timeout=120,600,1800,7200" # Increase test timeout due to QEMU emulation
uses: eclipse-score/cicd-workflows/.github/workflows/qnx-build.yml@af347722c7ae3ed85518895c11268d96ac728f62
permissions:
contents: read
pull-requests: read
strategy:
matrix:
config: ['arm64-qnx', 'x86_64-qnx']
with:
bazel-target: '//score/... //examples/...'
bazel-config: ${{ matrix.config }}
credential-helper: 'scripts/internal/qnx_creds.py'
environment-name: 'workflow-approval'
bazel-disk-cache: ${{ github.workflow }}-${{ github.job }}-${{ matrix.config }}
bazel-target: "//score/... //examples/..."
bazel-config: ${{ matrix.bazel-config }}
bazel-test-target: ${{ matrix.bazel-test-target }}
credential-helper: "scripts/internal/qnx_creds.py"
bazel-disk-cache: ${{ matrix.bazel-config }}
secrets:
score-qnx-license: ${{ secrets.SCORE_QNX_LICENSE }}
score-qnx-user: ${{ secrets.SCORE_QNX_USER }}
score-qnx-password: ${{ secrets.SCORE_QNX_PASSWORD }}

Loading