[SAIP4] Mask ingress ACL resource issues on older images, add acl_forward to mirror_and_redirect, Reduce RIF table size to 200 and increase multicast RIF to 128, Add constraint to Ipv4/6 multicast table to limit IP addresses to multicast ranges, Remove deprecated set_nexthop
action, Allow match on VLAN 0 in acl_pre_ingress_vlan_table, Remove @unsupported annotation for tunnel decap, add an l2 passthrough action to multicast_router_interface_table, Swap mirror_encap_src_ip and mirror_encap_dst_ip in mirroring.p4, Remove @unsupported annotation for tunnel decap table, Fix bug in IPMCv6 DMAC condition & Support action mirror_with_vlan_tag_and_ipfix_encapsulation
.
#3048
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "build" | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
build: | |
name: Bazel Build and Test | |
# We use Ubuntu 20.04 as it comes with GCC v9.3 by default. | |
runs-on: ubuntu-20.04 | |
env: | |
BAZEL_CACHE_USER: github | |
BAZEL_CACHE_PWD: ${{ secrets.BAZEL_CACHE_PWD }} | |
BAZEL_CACHE_URL: pins-bazel-cache.onf.dev:9090 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Mount bazel cache | |
uses: actions/cache@v2 | |
with: | |
# See https://docs.bazel.build/versions/master/output_directories.html | |
path: "/tmp/repo-cache" | |
# See https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows | |
key: bazel-repo-cache-v1-${{ runner.os }}-${{ hashFiles('**/*_deps.bzl', '.bazelrc', '.bazelversion', 'WORKSPACE.bazel') }} | |
restore-keys: | | |
bazel-repo-cache-v1-${{ runner.os }}- | |
- name: Install system dependencies | |
run: ./install_dependencies.sh | |
- name: Install bazelisk | |
run: | | |
ARCH=$(dpkg --print-architecture) | |
sudo curl -fsSL -o /usr/local/bin/bazel \ | |
https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-${ARCH} | |
sudo chmod +x /usr/local/bin/bazel | |
# Authentication is enabled for R/W access for builds on main and branch PRs | |
# Unauthenticated reads are allowed for PRs from forks | |
- name: Build and Test | |
run: | | |
mkdir -p /tmp/repo-cache | |
BAZEL_OPTS="--repository_cache=/tmp/repo-cache" | |
[ ! -z "$BAZEL_CACHE_USER" ] && [ ! -z "$BAZEL_CACHE_PWD" ] && \ | |
AUTH="${BAZEL_CACHE_USER}:${BAZEL_CACHE_PWD}@" | |
BAZEL_OPTS+=" --remote_cache=https://${AUTH}${BAZEL_CACHE_URL}" | |
BAZEL_OPTS+=" --remote_download_minimal" | |
bazel build ${BAZEL_OPTS} //... | |
bazel test ${BAZEL_OPTS} //... |