aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/build-and-test-min-cmake.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/build-and-test-min-cmake.yml')
-rw-r--r--.github/workflows/build-and-test-min-cmake.yml46
1 files changed, 46 insertions, 0 deletions
diff --git a/.github/workflows/build-and-test-min-cmake.yml b/.github/workflows/build-and-test-min-cmake.yml
new file mode 100644
index 0000000..e3e3217
--- /dev/null
+++ b/.github/workflows/build-and-test-min-cmake.yml
@@ -0,0 +1,46 @@
+name: build-and-test-min-cmake
+
+on:
+ push:
+ branches: [ main ]
+ pull_request:
+ branches: [ main ]
+
+jobs:
+ job:
+ name: ${{ matrix.os }}.min-cmake
+ runs-on: ${{ matrix.os }}
+ strategy:
+ fail-fast: false
+ matrix:
+ os: [ubuntu-latest, macos-latest]
+
+ steps:
+ - uses: actions/checkout@v3
+
+ - uses: lukka/get-cmake@latest
+ with:
+ cmakeVersion: 3.10.0
+
+ - name: create build environment
+ run: cmake -E make_directory ${{ runner.workspace }}/_build
+
+ - name: setup cmake initial cache
+ run: touch compiler-cache.cmake
+
+ - name: configure cmake
+ env:
+ CXX: ${{ matrix.compiler }}
+ shell: bash
+ working-directory: ${{ runner.workspace }}/_build
+ run: >
+ cmake -C ${{ github.workspace }}/compiler-cache.cmake
+ $GITHUB_WORKSPACE
+ -DBENCHMARK_DOWNLOAD_DEPENDENCIES=ON
+ -DCMAKE_CXX_VISIBILITY_PRESET=hidden
+ -DCMAKE_VISIBILITY_INLINES_HIDDEN=ON
+
+ - name: build
+ shell: bash
+ working-directory: ${{ runner.workspace }}/_build
+ run: cmake --build .