-
Notifications
You must be signed in to change notification settings - Fork 68
47 lines (45 loc) · 1.89 KB
/
build_and_test_host.yml
File metadata and controls
47 lines (45 loc) · 1.89 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# *******************************************************************************
# Copyright (c) 2024 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
# *******************************************************************************
# Workflow configuration for S-CORE CI - Bazel Build & Test communication module for host platforms
# This workflow runs Bazel build and test when triggered by specific pull request events.
name: Bazel Build & Test communication module
on:
pull_request:
types: [opened, reopened, synchronize]
merge_group:
types: [checks_requested]
workflow_call:
jobs:
build_and_test_host:
strategy:
fail-fast: false
matrix:
toolchain: ["@llvm_toolchain//:cc-toolchain-x86_64-linux", "@gcc_toolchain//:host_gcc_12"]
# Starting with Ubuntu 24.04 apparmor breaks Bazels linux-sandbox: https://github.com/bazelbuild/bazel/issues/24081
runs-on: ubuntu-22.04
steps:
- name: Checkout repository
uses: actions/checkout@v4.2.2
- name: Free Disk Space (Ubuntu)
uses: ./actions/free_disk_space
- uses: bazel-contrib/setup-bazel@0.15.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}-${{ matrix.toolchain }}
repository-cache: true
- name: Bazel build communication targets
run: |
bazel build --extra_toolchains=${{ matrix.toolchain }} //...
- name: Bazel test communication targets
run: |
bazel test --extra_toolchains=${{ matrix.toolchain }} //... --build_tests_only