From 6f3e6c698c57d16650e584e9e123cb6e8df83ac2 Mon Sep 17 00:00:00 2001 From: DJ2LS <75909252+DJ2LS@users.noreply.github.com> Date: Sun, 20 Nov 2022 13:33:11 +0100 Subject: [PATCH] added ctest for different versions --- .github/workflows/ctest_p3.10.yml | 43 +++++++++++++++++++ .github/workflows/ctest_p3.11.yml | 43 +++++++++++++++++++ .github/workflows/ctest_p3.7.yml | 43 +++++++++++++++++++ .github/workflows/ctest_p3.8.yml | 43 +++++++++++++++++++ .../workflows/{ctest.yml => ctest_p3.9.yml} | 0 5 files changed, 172 insertions(+) create mode 100644 .github/workflows/ctest_p3.10.yml create mode 100644 .github/workflows/ctest_p3.11.yml create mode 100644 .github/workflows/ctest_p3.7.yml create mode 100644 .github/workflows/ctest_p3.8.yml rename .github/workflows/{ctest.yml => ctest_p3.9.yml} (100%) diff --git a/.github/workflows/ctest_p3.10.yml b/.github/workflows/ctest_p3.10.yml new file mode 100644 index 00000000..6d1ab911 --- /dev/null +++ b/.github/workflows/ctest_p3.10.yml @@ -0,0 +1,43 @@ +name: CTest + +on: [push] + +jobs: + build: + # The CMake configure and build commands are platform-agnostic and should work equally + # well on Windows or Mac. You can convert this to a matrix build if you need + # cross-platform coverage. + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python 3.10 + uses: actions/setup-python@v4 + with: + python-version: 3.10 + + + - name: Install packages + shell: bash + run: | + sudo apt-get update + sudo apt-get install octave octave-common octave-signal sox portaudio19-dev python3-pyaudio + pip3 install psutil crcengine ujson pyserial numpy structlog sounddevice pyaudio + pip3 install pytest pytest-rerunfailures + + - name: Build codec2 + shell: bash + run: | + git clone https://github.com/drowe67/codec2.git + cd codec2 && git checkout master # This should be pinned to a release + mkdir -p build_linux && cd build_linux && cmake .. && make + + - name: run ctests + shell: bash + working-directory: ${{github.workspace}} + run: | + mkdir build && cd build + cmake -DCODEC2_BUILD_DIR=$GITHUB_WORKSPACE/codec2/build_linux .. + ctest --output-on-failure diff --git a/.github/workflows/ctest_p3.11.yml b/.github/workflows/ctest_p3.11.yml new file mode 100644 index 00000000..5e076320 --- /dev/null +++ b/.github/workflows/ctest_p3.11.yml @@ -0,0 +1,43 @@ +name: CTest + +on: [push] + +jobs: + build: + # The CMake configure and build commands are platform-agnostic and should work equally + # well on Windows or Mac. You can convert this to a matrix build if you need + # cross-platform coverage. + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python 3.11 + uses: actions/setup-python@v4 + with: + python-version: 3.11 + + + - name: Install packages + shell: bash + run: | + sudo apt-get update + sudo apt-get install octave octave-common octave-signal sox portaudio19-dev python3-pyaudio + pip3 install psutil crcengine ujson pyserial numpy structlog sounddevice pyaudio + pip3 install pytest pytest-rerunfailures + + - name: Build codec2 + shell: bash + run: | + git clone https://github.com/drowe67/codec2.git + cd codec2 && git checkout master # This should be pinned to a release + mkdir -p build_linux && cd build_linux && cmake .. && make + + - name: run ctests + shell: bash + working-directory: ${{github.workspace}} + run: | + mkdir build && cd build + cmake -DCODEC2_BUILD_DIR=$GITHUB_WORKSPACE/codec2/build_linux .. + ctest --output-on-failure diff --git a/.github/workflows/ctest_p3.7.yml b/.github/workflows/ctest_p3.7.yml new file mode 100644 index 00000000..adc9bc8a --- /dev/null +++ b/.github/workflows/ctest_p3.7.yml @@ -0,0 +1,43 @@ +name: CTest + +on: [push] + +jobs: + build: + # The CMake configure and build commands are platform-agnostic and should work equally + # well on Windows or Mac. You can convert this to a matrix build if you need + # cross-platform coverage. + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python 3.7 + uses: actions/setup-python@v4 + with: + python-version: 3.7 + + + - name: Install packages + shell: bash + run: | + sudo apt-get update + sudo apt-get install octave octave-common octave-signal sox portaudio19-dev python3-pyaudio + pip3 install psutil crcengine ujson pyserial numpy structlog sounddevice pyaudio + pip3 install pytest pytest-rerunfailures + + - name: Build codec2 + shell: bash + run: | + git clone https://github.com/drowe67/codec2.git + cd codec2 && git checkout master # This should be pinned to a release + mkdir -p build_linux && cd build_linux && cmake .. && make + + - name: run ctests + shell: bash + working-directory: ${{github.workspace}} + run: | + mkdir build && cd build + cmake -DCODEC2_BUILD_DIR=$GITHUB_WORKSPACE/codec2/build_linux .. + ctest --output-on-failure diff --git a/.github/workflows/ctest_p3.8.yml b/.github/workflows/ctest_p3.8.yml new file mode 100644 index 00000000..90ef9831 --- /dev/null +++ b/.github/workflows/ctest_p3.8.yml @@ -0,0 +1,43 @@ +name: CTest + +on: [push] + +jobs: + build: + # The CMake configure and build commands are platform-agnostic and should work equally + # well on Windows or Mac. You can convert this to a matrix build if you need + # cross-platform coverage. + # See: https://docs.github.com/en/free-pro-team@latest/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + + - name: Set up Python 3.8 + uses: actions/setup-python@v4 + with: + python-version: 3.8 + + + - name: Install packages + shell: bash + run: | + sudo apt-get update + sudo apt-get install octave octave-common octave-signal sox portaudio19-dev python3-pyaudio + pip3 install psutil crcengine ujson pyserial numpy structlog sounddevice pyaudio + pip3 install pytest pytest-rerunfailures + + - name: Build codec2 + shell: bash + run: | + git clone https://github.com/drowe67/codec2.git + cd codec2 && git checkout master # This should be pinned to a release + mkdir -p build_linux && cd build_linux && cmake .. && make + + - name: run ctests + shell: bash + working-directory: ${{github.workspace}} + run: | + mkdir build && cd build + cmake -DCODEC2_BUILD_DIR=$GITHUB_WORKSPACE/codec2/build_linux .. + ctest --output-on-failure diff --git a/.github/workflows/ctest.yml b/.github/workflows/ctest_p3.9.yml similarity index 100% rename from .github/workflows/ctest.yml rename to .github/workflows/ctest_p3.9.yml