-
Notifications
You must be signed in to change notification settings - Fork 444
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Run Gauntlet validation and Ubuntu 18 build/test as nightly actions.
- Loading branch information
Showing
3 changed files
with
46 additions
and
35 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: "test-p4c-ubuntu-18.04" | ||
|
||
on: | ||
schedule: | ||
# Every day on midnight UTC | ||
- cron: '0 0 * * *' | ||
|
||
# Cancel any preceding run on the pull request. | ||
concurrency: | ||
group: test-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
jobs: | ||
# Build with gcc and test p4c on Ubuntu 18.04. | ||
test-ubuntu18: | ||
strategy: | ||
fail-fast: false | ||
runs-on: ubuntu-latest | ||
env: | ||
CTEST_PARALLEL_LEVEL: 4 | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: recursive | ||
fetch-depth: 0 | ||
|
||
- name: ccache | ||
uses: hendrikmuhs/ccache-action@v1 | ||
with: | ||
key: test-ubuntu-18.04-gcc | ||
max-size: 1000M | ||
|
||
- name: Build (Ubuntu 18.04, GCC) | ||
run: | | ||
docker build -t p4c --build-arg BASE_IMAGE=ubuntu:18.04 --build-arg IMAGE_TYPE=test \ | ||
--build-arg ENABLE_TEST_TOOLS=OFF . | ||
./tools/export_ccache.sh | ||
# run with sudo (...) --privileged | ||
# this is needed to create network namespaces for the ebpf tests. | ||
- name: Run tests (Ubuntu 18.04) | ||
run: | | ||
sudo -E docker run --privileged -w /p4c/build -e $CTEST_PARALLEL_LEVEL p4c ctest --output-on-failure --schedule-random |
7 changes: 3 additions & 4 deletions
7
.github/workflows/ci-validation.yml → .github/workflows/ci-validation-nightly.yml
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