scripts: robot_test: add startup_pools.robot to CI #53
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: CI | |
on: [push, pull_request, workflow_dispatch] | |
env: | |
CC: gcc | |
# Default target architecture for native compilation | |
TARGET_ARCH: "" | |
jobs: | |
# Perform lint check on shell scripts and YAML files | |
Lint-Code-Base: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout EM-ODP | |
uses: actions/checkout@v3 | |
with: | |
# Full git history is needed to get a proper list of changed files | |
# within `super-linter` | |
fetch-depth: 0 | |
- name: Lint check | |
uses: github/super-linter@v4 | |
env: | |
DEFAULT_BRANCH: master | |
VALIDATE_YAML: true | |
VALIDATE_PYTHON: true | |
VALIDATE_MARKDOWN: true | |
VALIDATE_GITHUB_ACTIONS: true | |
VALIDATE_ENV: true | |
VALIDATE_DOCKERFILE_HADOLINT: true | |
VALIDATE_SHELL_SHFMT: true | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# Build doxygen documentation | |
Build-Doxygen: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install asciidoctor mscgen graphviz doxygen | |
sudo apt-get install libconfig-dev | |
- name: Build | |
run: ./scripts/build.sh -d | |
# Build EM-ODP and run robot tests on github hosted ubuntu runner | |
Build-Run-on-Ubuntu-Runner: | |
runs-on: ubuntu-20.04 | |
strategy: | |
fail-fast: false | |
matrix: | |
cc: [gcc, clang] | |
env: | |
CC: "${{matrix.cc}}" | |
steps: | |
- name: Install dependencies | |
run: | | |
sudo apt-get update | |
sudo apt-get install libconfig-dev | |
sudo pip3 install robotframework | |
sudo apt-get install libcli-dev | |
sudo apt-get install telnet | |
- name: Checkout EM-ODP | |
uses: actions/checkout@v3 | |
- name: Build EM-ODP | |
run: ./scripts/build.sh | |
- name: Run Robot Tests | |
run: | | |
sudo sysctl -w vm.nr_hugepages=512 | |
grep Huge /proc/meminfo | |
sudo /bin/bash ./scripts/robot_test.sh | |
Cross-Compile-for-arm64: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cross-compile EM-ODP for arm64 | |
run: > | |
sudo docker run | |
--privileged | |
-i | |
-v "${PWD}:/root/em-odp" | |
--workdir="/root/em-odp" | |
--shm-size 8g | |
-e CC="aarch64-linux-gnu-gcc" | |
-e TARGET_ARCH=aarch64-linux-gnu | |
ghcr.io/opendataplane/odp-docker-images/odp-ci-ubuntu_18.04-arm64 | |
/root/em-odp/scripts/build.sh |