Skip to content

Commit 2669dee

Browse files
authored
Add additional tests (#39)
* Add additional tests * Add artifact upload and download steps to workflow Signed-off-by: Nikola Radakovic <nikola.ra.radakovic@bmw.de> --------- Signed-off-by: Nikola Radakovic <nikola.ra.radakovic@bmw.de>
1 parent 8d9caf2 commit 2669dee

3 files changed

Lines changed: 107 additions & 1 deletion

File tree

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2026 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: Bazel Build (Aarch64-Linux)
14+
on:
15+
pull_request:
16+
types: [opened, reopened, synchronize]
17+
push:
18+
branches:
19+
- main
20+
merge_group:
21+
types: [checks_requested]
22+
workflow_call:
23+
jobs:
24+
target_config_3:
25+
runs-on: ubuntu-latest
26+
defaults:
27+
run:
28+
working-directory: ./examples
29+
steps:
30+
- name: Checkout Repository
31+
uses: actions/checkout@v6
32+
- name: Setup Bazel
33+
uses: bazel-contrib/setup-bazel@0.18.0
34+
with:
35+
bazelisk-cache: true
36+
disk-cache: ${{ github.job }}
37+
repository-cache: true
38+
cache-save: ${{ github.event_name == 'push' }}
39+
- name: Bazel Build (basic)
40+
run: |
41+
bazel build --config target_config_3 -- //...
42+
- name: Upload artifact
43+
uses: actions/upload-artifact@v4
44+
with:
45+
name: build-output
46+
path: examples/bazel-bin/
47+
run_on_target:
48+
runs-on: ubuntu-24.04-arm
49+
needs: target_config_3
50+
steps:
51+
- name: Download artifact
52+
uses: actions/download-artifact@v5
53+
with:
54+
name: build-output
55+
path: downloaded/
56+
- name: Use artifact
57+
run: |
58+
chmod 755 ./downloaded/main_cpp
59+
chmod 755 ./downloaded/main_pthread_cpp
60+
./downloaded/main_cpp
61+
./downloaded/main_pthread_cpp
62+
63+
64+

.github/workflows/autosd.yml

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
# *******************************************************************************
2+
# Copyright (c) 2026 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: Bazel Build (AutoSD 10)
14+
on:
15+
pull_request:
16+
types: [opened, reopened, synchronize]
17+
push:
18+
branches:
19+
- main
20+
merge_group:
21+
types: [checks_requested]
22+
workflow_call:
23+
jobs:
24+
target_config_4:
25+
runs-on: ubuntu-latest
26+
defaults:
27+
run:
28+
working-directory: ./examples
29+
steps:
30+
- name: Checkout Repository
31+
uses: actions/checkout@v6
32+
- name: Setup Bazel
33+
uses: bazel-contrib/setup-bazel@0.18.0
34+
with:
35+
bazelisk-cache: true
36+
disk-cache: ${{ github.job }}
37+
repository-cache: true
38+
cache-save: ${{ github.event_name == 'push' }}
39+
- name: Bazel Build (basic)
40+
run: |
41+
bazel build --config target_config_4 -- //:main_cpp //:main_pthread_cpp //:math_lib //:math_lib_shared
42+

.github/workflows/x86_64-linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
#
1111
# SPDX-License-Identifier: Apache-2.0
1212
# *******************************************************************************
13-
name: Bazel Build (Linux)
13+
name: Bazel Build (x86_64-Linux)
1414
on:
1515
pull_request:
1616
types: [opened, reopened, synchronize]

0 commit comments

Comments
 (0)