Skip to content

Commit

Permalink
macOS: Quick, Medium and Full Builds (#132)
Browse files Browse the repository at this point in the history
* macOS Quick, Medium and Full Builds

* Test: clang++ and g++-13

* Specific build patterns in branches
  • Loading branch information
jcrada committed Jan 17, 2024
1 parent 8e08468 commit 5e8a101
Show file tree
Hide file tree
Showing 5 changed files with 109 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/LinuxFullBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Linux Full Build

on:
push:
branches: [ "build/*" ]
branches: [ "build/*", "build-linux/*" ]

jobs:
build-clang:
Expand Down
51 changes: 51 additions & 0 deletions .github/workflows/MacFullBuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: macOS Full Build

on:
push:
branches: [ "build/*", "build-mac/*" ]

jobs:
build-clang:
runs-on: macos-latest

strategy:
fail-fast: false
matrix:
build_type: [ "release", "debug" ]
use_cpp98: [ "OFF", "ON" ]
use_float: [ "OFF", "ON" ]

steps:
- uses: actions/checkout@v4

- name: Building FuzzyLite
working-directory: fuzzylite
env:
CXX: clang++
run: |
cmake -B build/${{ matrix.build_type }} -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DFL_CPP98=${{ matrix.use_cpp98 }} -DFL_USE_FLOAT=${{ matrix.use_float }} .
cmake --build build/${{ matrix.build_type }} --parallel
ctest --test-dir build/${{ matrix.build_type }}
build-gcc:
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
compiler_version: [ "11", "12", "13" ]
build_type: [ "release" ]
use_cpp98: [ "OFF", "ON" ]
use_float: [ "OFF", "ON" ]

steps:
- uses: actions/checkout@v4

- name: Building FuzzyLite
working-directory: fuzzylite
env:
CXX: g++-${{ matrix.compiler_version }}
run: |
cmake -B build/${{ matrix.build_type }} -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DFL_CPP98=${{ matrix.use_cpp98 }} -DFL_USE_FLOAT=${{ matrix.use_float }} .
cmake --build build/${{ matrix.build_type }} --parallel
ctest --test-dir build/${{ matrix.build_type }}
29 changes: 29 additions & 0 deletions .github/workflows/MacMediumBuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: macOS Medium Build

on:
push:
branches: [ "main" ]

jobs:
build:
runs-on: macos-latest

strategy:
fail-fast: false
matrix:
build_type: [ "release", "debug" ]
use_cxx: [ "clang++", "g++-13" ]
use_cpp98: [ "OFF", "ON" ]
use_float: [ "OFF", "ON" ]

steps:
- uses: actions/checkout@v4

- name: Building FuzzyLite
working-directory: fuzzylite
env:
CXX: ${{ matrix.use_cxx }}
run: |
cmake -B build/${{ matrix.build_type }} -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DFL_CPP98=${{ matrix.use_cpp98 }} -DFL_USE_FLOAT=${{ matrix.use_float }} .
cmake --build build/${{ matrix.build_type }} --parallel
ctest --test-dir build/${{ matrix.build_type }}
27 changes: 27 additions & 0 deletions .github/workflows/MacQuickBuild.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: macOS Quick Build

on:
pull_request:
branches: [ "main" ]

jobs:
build:
runs-on: macos-latest

strategy:
fail-fast: false
matrix:
build_type: [ "release" ]
use_cxx: [ "clang++" ]

steps:
- uses: actions/checkout@v4

- name: Building FuzzyLite
working-directory: fuzzylite
env:
CXX: ${{ matrix.use_cxx }}
run: |
cmake -B build/${{ matrix.build_type }} -G"Unix Makefiles" -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} .
cmake --build build/${{ matrix.build_type }} --parallel
ctest --test-dir build/${{ matrix.build_type }}
2 changes: 1 addition & 1 deletion .github/workflows/WindowsFullBuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Windows Full Build

on:
push:
branches: [ "build/*" ]
branches: [ "build/*", "build-windows/*" ]

jobs:
build:
Expand Down

0 comments on commit 5e8a101

Please sign in to comment.