PUBLIC: [P4-Constraints] Set up well-formedness constraints on match fields for symbolic evaluation in Z3. #620
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: native build & test | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
# Run daily at 00:00 (https://crontab.guru/#0_0_*_*_*). | |
- cron: "0 0 * * *" | |
jobs: | |
build: | |
# We use Ubuntu 20.04 as it comes with GCC v9.3 by default. | |
runs-on: ubuntu-20.04 | |
env: | |
BAZEL: bazelisk-linux-amd64 | |
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: "~/.cache/bazel" | |
# See https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows | |
key: new-${{ runner.os }}-build-${{ hashFiles('**/*.bzl', '**/*.bazel') }} | |
restore-keys: | | |
new-${{ runner.os }}-build- | |
new-${{ runner.os }}- | |
- name: Install p4c system dependencies (Flex, Bison, GMP) | |
run: sudo apt-get update && sudo apt-get install bison flex libfl-dev libgmp-dev | |
- name: Install bazelisk | |
run: | | |
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.7.4/$BAZEL" | |
chmod +x $BAZEL | |
- name: Build | |
run: ./$BAZEL build //... | |
test: | |
# We use Ubuntu 20.04 as it comes with GCC v9.3 by default. | |
runs-on: ubuntu-20.04 | |
env: | |
BAZEL: bazelisk-linux-amd64 | |
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: "~/.cache/bazel" | |
# See https://docs.github.com/en/actions/guides/caching-dependencies-to-speed-up-workflows | |
key: new-${{ runner.os }}-test-${{ hashFiles('**/*.bzl', '**/*.bazel') }} | |
restore-keys: | | |
new-${{ runner.os }}-test- | |
new-${{ runner.os }}- | |
- name: Install p4c system dependencies (Flex, Bison, GMP) | |
run: sudo apt-get update && sudo apt-get install bison flex libfl-dev libgmp-dev | |
- name: Install bazelisk | |
run: | | |
curl -LO "https://github.com/bazelbuild/bazelisk/releases/download/v1.7.4/$BAZEL" | |
chmod +x $BAZEL | |
- name: Test | |
run: ./$BAZEL test //... --test_output=errors |