-
-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
macOS: Quick, Medium and Full Builds (#132)
* macOS Quick, Medium and Full Builds * Test: clang++ and g++-13 * Specific build patterns in branches
- Loading branch information
Showing
5 changed files
with
109 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters