summaryrefslogtreecommitdiff
path: root/.github/workflows/cmake-multi-platform.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/cmake-multi-platform.yml')
-rw-r--r--.github/workflows/cmake-multi-platform.yml39
1 files changed, 39 insertions, 0 deletions
diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml
new file mode 100644
index 0000000..b4137b5
--- /dev/null
+++ b/.github/workflows/cmake-multi-platform.yml
@@ -0,0 +1,39 @@
+name: CMake on multiple platforms
+
+on:
+ push:
+ branches: [ "master" ]
+ pull_request:
+ branches: [ "master" ]
+
+jobs:
+ build:
+ runs-on: ${{ matrix.os }}
+
+ strategy:
+ fail-fast: false
+
+ matrix:
+ os: [ubuntu-latest, macos-latest]
+ build_type: [RelWithDebInfo]
+ c_compiler: [gcc, clang]
+ include:
+ - os: macos-latest
+ c_compiler: clang
+ - os: ubuntu-latest
+ c_compiler: gcc
+ - os: ubuntu-latest
+ c_compiler: clang
+ exclude:
+ - os: macos-latest
+ c_compiler: gcc
+
+ steps:
+ - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
+
+ - name: Build
+ run: |
+ ${{ matrix.c_compiler }} -v -Wall -Wextra -o see_defs main.c
+
+ - name: Test
+ run: ./see_defs