ci: bump conda-incubator/setup-miniconda from 2.2.0 to 2.3.0 #162
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: Runtime | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ master, develop ] | |
pull_request: | |
branches: [ master, develop ] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-22.04, ubuntu-20.04] | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Set platform server (socket) dir | |
id: set_temp_dirs | |
run: | | |
MKTEMP=$(mktemp -d) | |
echo "Platform temp dir is: ${MKTEMP}" | |
echo "GH CI temp dir is: ${RUNNER_TEMP}" | |
if [ "${ImageOS}" != "ubuntu18" ] | |
then | |
TEMP_DIR="${MKTEMP}" | |
else | |
TEMP_DIR="${RUNNER_TEMP}" | |
fi | |
echo "Setting runtime dir: ${TEMP_DIR}" | |
echo "TEMP_DIR=${TEMP_DIR}" >> $GITHUB_ENV | |
bash -c set | |
- name: Add python requirements | |
run: | | |
python -m pip install --upgrade pip | |
pip install gcovr | |
- name: Common dependencies | |
run: | | |
sudo apt-get -qq update | |
sudo apt-get install -y libhiredis-dev redis-server | |
- name: Backports (bionic) | |
if: matrix.os == 'ubuntu-22.04' | |
run: | | |
sudo apt-get install -y software-properties-common | |
sudo add-apt-repository -y -s ppa:nerdboy/embedded | |
sudo apt-get install -y libjson-c-dev lcov | |
- name: Backports (focal) | |
if: matrix.os == 'ubuntu-20.04' | |
run: | | |
sudo apt-get install -y software-properties-common autoconf automake lcov | |
sudo add-apt-repository -y -s ppa:nerdboy/embedded | |
sudo apt-get install -y libjson-c-dev | |
- name: Configure and build (autotools) | |
if: matrix.os == 'ubuntu-20.04' | |
run: | | |
autoreconf -fiv | |
./configure --with-coverage | |
make cov || true | |
- name: Configure and build (cmake) | |
if: matrix.os == 'ubuntu-22.04' | |
run: | | |
cmake -S . -B build -DWITH_COVERAGE=1 -DCMAKE_BUILD_TYPE=Debug | |
cmake --build build -j 2 | |
make cov || true | |
- name: Message bus | |
env: | |
RIPC_RUNTIME_DIR: "${{ env.TEMP_DIR }}" | |
run: | | |
./scripts/run_redis.sh start | |
- name: Test (autotools) | |
if: matrix.os == 'ubuntu-20.04' | |
env: | |
RIPC_SERVER_PATH: "${{ env.TEMP_DIR }}/socket" | |
run: | | |
make cov | |
gcovr --gcov-ignore-parse-errors --config gcovr.cfg -s -b src/.libs/ test/ | |
- name: Test (ctest) | |
if: matrix.os == 'ubuntu-22.04' | |
env: | |
RIPC_SERVER_PATH: "${{ env.TEMP_DIR }}/socket" | |
run: | | |
ctest --build-target cov --test-dir build/ | |
gcovr --gcov-ignore-parse-errors --config gcovr.cfg -r . -s -b build/ | |
- name: Cleanup | |
env: | |
RIPC_RUNTIME_DIR: "${{ env.TEMP_DIR }}" | |
run: | | |
./scripts/run_redis.sh stop |