From 262f1e0602716c039c88497b0d9e1072f38c6d14 Mon Sep 17 00:00:00 2001 From: Borislav Stanimirov Date: Tue, 11 Jan 2022 22:16:04 +0200 Subject: [PATCH] Unified GitHub workflow for tests on major operating systems (#326) --- .github/workflows/macos.yml | 22 ---------------------- .github/workflows/test.yml | 25 +++++++++++++++++++++++++ .github/workflows/ubuntu.yml | 29 ----------------------------- .github/workflows/windows.yml | 22 ---------------------- 4 files changed, 25 insertions(+), 73 deletions(-) delete mode 100644 .github/workflows/macos.yml create mode 100644 .github/workflows/test.yml delete mode 100644 .github/workflows/ubuntu.yml delete mode 100644 .github/workflows/windows.yml diff --git a/.github/workflows/macos.yml b/.github/workflows/macos.yml deleted file mode 100644 index 1020c11..0000000 --- a/.github/workflows/macos.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: MacOS - -on: - push: - branches: - - master - pull_request: - branches: - - master - -jobs: - build: - - runs-on: macos-latest - - steps: - - uses: actions/checkout@v1 - - - name: run tests - run: | - cmake -Htest -Bbuild/test - cmake --build build/test --target test-verbose diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..c7b90cd --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,25 @@ +name: Test + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + tests: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-latest] + + steps: + - name: clone + uses: actions/checkout@v2 + + - name: unit tests + run: | + cmake -Htest -Bbuild/test + cmake --build build/test --target test-verbose diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml deleted file mode 100644 index cca9b9a..0000000 --- a/.github/workflows/ubuntu.yml +++ /dev/null @@ -1,29 +0,0 @@ -name: Ubuntu - -on: - push: - branches: - - master - pull_request: - branches: - - master - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v1 - - - name: install updates - run: | - wget -O cmake.sh https://cmake.org/files/v3.14/cmake-3.14.0-Linux-x86_64.sh - sudo sh cmake.sh --skip-license --exclude-subdir --prefix=/usr/local - export PATH=/usr/local/bin:$PATH - cmake --version - - - name: run tests - run: | - cmake -Htest -Bbuild/test - cmake --build build/test --target test-verbose diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml deleted file mode 100644 index 165a67f..0000000 --- a/.github/workflows/windows.yml +++ /dev/null @@ -1,22 +0,0 @@ -name: Windows - -on: - push: - branches: - - master - pull_request: - branches: - - master - -jobs: - build: - - runs-on: windows-latest - - steps: - - uses: actions/checkout@v1 - - - name: run tests - run: | - cmake -Htest -Bbuild/test - cmake --build build/test --target test-verbose