Skip to content

Merge pull request #32 from Ricardicus/cachepot #718

Merge pull request #32 from Ricardicus/cachepot

Merge pull request #32 from Ricardicus/cachepot #718

Workflow file for this run

name: Building and testing
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-and-test-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- id: install-python-deps
run: pip3 install -r requirements.txt
- id: build-meson
run: mkdir install && meson builddir --prefix $(pwd)/install && cd builddir && ninja && ninja install
- id: running-pytest
run: cd tests; pytest
build-and-test-linux-dyn-lib:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- id: install-python-deps
run: pip3 install -r requirements.txt
- id: build-meson
run: mkdir install && meson builddir --prefix $(pwd)/install && cd builddir && ninja && ninja install
- id: build-dyn-lib
run: cd src/sdk_lib && meson builddir && cd builddir && ninja && cd .. && cp ../../install/bin/ric . && echo 'builddir/libric_extended_lib_example.so.1.0.0' > ric_modules.txt
- id: test-dyn-lib
run: cd src/sdk_lib && pytest
build-and-test-windows:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, windows-2019]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- id: install-python-deps
run: pip3 install -r requirements.txt
- id: build-meson
run: mkdir install; meson builddir --prefix ${pwd}\install; cd builddir; ninja; ninja install
- id: running-pytest
run: cd tests; pytest
build-and-test-windows-dyn-lib:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, windows-2019]
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v1
- id: install-python-deps
run: pip3 install -r requirements.txt
- id: build-meson
run: mkdir install; meson builddir --prefix ${pwd}\install; cd builddir; ninja; ninja install
- id: build-dyn-lib
run: cd src\sdk_lib && meson builddir && cd builddir && ninja && cd .. && copy ..\..\install\bin\libpcre.dll . && copy ..\..\install\bin\ric.exe . && copy tests\ric_modules.txt .
- id: test-dyn-lib
run: cd src/sdk_lib && pytest