Skip to content

Commit

Permalink
automatic build/test action
Browse files Browse the repository at this point in the history
  • Loading branch information
Geolm authored Jan 19, 2024
1 parent 90cb376 commit 644d92c
Showing 1 changed file with 61 additions and 0 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/cmake-multi-platform.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: C/C++ CI

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build-ubuntu-clang:
name: ubuntu-clang
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Configure CMake
run: cmake ${{github.workspace}}/tests/ -DCMAKE_C_COMPILER=clang

- name: Build
run: cmake --build ${{github.workspace}}/

- name: Test
working-directory: ${{github.workspace}}/
run: ./tests

build-macos:
name: macos
runs-on: macos-latest

steps:
- uses: actions/checkout@v3

- name: Configure CMake
run: cmake ${{github.workspace}}/tests/

- name: Build
run: cmake --build ${{github.workspace}}/

- name: Test
working-directory: ${{github.workspace}}/
run: ./tests

build-windows:
name: windows
runs-on: windows-latest

steps:
- uses: actions/checkout@v3

- name: Configure CMake
working-directory: ${{github.workspace}}\tests
run: cmake .

- name: Build
working-directory: ${{github.workspace}}\tests
run: cmake --build .

- name: Test
working-directory: ${{github.workspace}}\tests\Debug
run: ./tests

0 comments on commit 644d92c

Please sign in to comment.