Fix type in introspection.json file #77
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: "static-build-test-p4c" | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
# Cancel any preceding run on the pull request. | |
concurrency: | |
group: static-build-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | |
jobs: | |
# Build a p4c release on Ubuntu 20.04. | |
build-linux: | |
strategy: | |
fail-fast: false | |
runs-on: ubuntu-20.04 | |
env: | |
IMAGE_TYPE: test | |
CMAKE_UNITY_BUILD: ON | |
BUILD_STATIC_RELEASE_SANS_GLIBC: ON | |
ENABLE_TEST_TOOLS: ON | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: ccache | |
uses: hendrikmuhs/ccache-action@v1 | |
with: | |
key: test-static-${{ runner.os }} | |
max-size: 1000M | |
- shell: bash | |
name: Build (Ubuntu 20.04) | |
run: | | |
sudo -E tools/ci-build.sh | |
# Disabling these checks until we find a better way to build a fully static binary. | |
# ldd ./build/p4c-bm2-psa 2>&1 | grep -E -qi "(not a dynamic executable)|(statically linked)" | |
# ldd ./build/p4c-bm2-ss 2>&1 | grep -E -qi "(not a dynamic executable)|(statically linked)" | |
# ldd ./build/p4c-dpdk 2>&1 | grep -E -qi "(not a dynamic executable)|(statically linked)" | |
# ldd ./build/p4c-ebpf 2>&1 | grep -E -qi "(not a dynamic executable)|(statically linked)" | |
# ldd ./build/p4c-pna-p4tc 2>&1 | grep -E -qi "(not a dynamic executable)|(statically linked)" | |
# ldd ./build/p4c-ubpf 2>&1 | grep -E -qi "(not a dynamic executable)|(statically linked)" | |
# ldd ./build/p4test 2>&1 | grep -E -qi "(not a dynamic executable)|(statically linked)" | |
# ldd ./build/p4testgen 2>&1 | grep -E -qi "(not a dynamic executable)|(statically linked)" | |
! ldd ./build/p4c-bm2-psa 2>&1 | grep -E "libgc|libboost_iostreams" | |
! ldd ./build/p4c-bm2-ss 2>&1 | grep -E "libgc|libboost_iostreams" | |
! ldd ./build/p4c-dpdk 2>&1 | grep -E "libgc|libboost_iostreams" | |
! ldd ./build/p4c-ebpf 2>&1 | grep -E "libgc|libboost_iostreams" | |
! ldd ./build/p4c-pna-p4tc 2>&1 | grep -E "libgc|libboost_iostreams" | |
! ldd ./build/p4c-ubpf 2>&1 | grep -E "libgc|libboost_iostreams" | |
! ldd ./build/p4test 2>&1 | grep -E "libgc|libboost_iostreams" | |
! ldd ./build/p4testgen 2>&1 | grep -E "libgc|libboost_iostreams" |