From 0293a9cff71dcbdda3f700da85d4a0ac0a4fd467 Mon Sep 17 00:00:00 2001 From: Spiros Maggioros Date: Wed, 31 Jul 2024 12:35:51 +0300 Subject: [PATCH] splitted the workflows for macos and ubuntu --- .github/dependabot.yml | 16 ++++++++ .github/workflows/macos_test_cases.yml | 39 +++++++++++++++++++ ...gle-platform.yml => ubuntu_test_cases.yml} | 0 3 files changed, 55 insertions(+) create mode 100644 .github/dependabot.yml create mode 100644 .github/workflows/macos_test_cases.yml rename .github/workflows/{cmake-single-platform.yml => ubuntu_test_cases.yml} (100%) diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 00000000..15d7229b --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,16 @@ +# The documentation for all configuration options: +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates + +version: 2 +updates: + - package-ecosystem: "maven" + directory: "/" # Location of package manifests + schedule: + interval: "weekly" + + - package-ecosystem: "github-actions" + # Workflow files stored in the + # default location of `.github/workflows` + directory: "/" + schedule: + interval: "weekly" \ No newline at end of file diff --git a/.github/workflows/macos_test_cases.yml b/.github/workflows/macos_test_cases.yml new file mode 100644 index 00000000..5cbd8ef1 --- /dev/null +++ b/.github/workflows/macos_test_cases.yml @@ -0,0 +1,39 @@ +# This starter workflow is for a CMake project running on a single platform. There is a different starter workflow if you need cross-platform coverage. +# See: https://github.com/actions/starter-workflows/blob/main/ci/cmake-multi-platform.yml +name: CMake on a single platform + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +env: + # Customize the CMake build type here (Release, Debug, RelWithDebInfo, etc.) + BUILD_TYPE: Release + +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: Download requirements + run: sudo pip3 install xcrun && sudo pip3 install gcovr && brew install lcov libxrandr libxcursor libudev openal-soft flac libvorbis mesa freeglut + - name: Install dependencies + run: pip install -r requirements.txt + - name: Configure CMake + # Configure CMake in a 'build' subdirectory. `CMAKE_BUILD_TYPE` is only required if you are using a single-configuration generator such as make. + # See https://cmake.org/cmake/help/latest/variable/CMAKE_BUILD_TYPE.html?highlight=cmake_build_type + run: cmake -B ${{github.workspace}}/build -DCMAKE_BUILD_TYPE=${{env.BUILD_TYPE}} -DENABLE_COVERAGE=true + - name: Build + # Build your program with the given configuration + run: cmake --build ${{github.workspace}}/build --config ${{env.BUILD_TYPE}} + - name: Test + working-directory: ${{github.workspace}}/build + # Execute tests defined by the CMake configuration. + # See https://cmake.org/cmake/help/latest/manual/ctest.1.html for more detail + run: ctest --output-on-failure \ No newline at end of file diff --git a/.github/workflows/cmake-single-platform.yml b/.github/workflows/ubuntu_test_cases.yml similarity index 100% rename from .github/workflows/cmake-single-platform.yml rename to .github/workflows/ubuntu_test_cases.yml