Skip to content

Commit

Permalink
Added support for double-precision
Browse files Browse the repository at this point in the history
  • Loading branch information
mihe committed Feb 15, 2024
1 parent 3cef229 commit 3fc2425
Show file tree
Hide file tree
Showing 33 changed files with 253 additions and 146 deletions.
3 changes: 3 additions & 0 deletions .github/actions/cmake-configure/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ inputs:
required: true
arch:
default: null
double:
default: false
args:
default: ''

Expand All @@ -25,4 +27,5 @@ runs:
--warn-uninitialized `
-Werror=dev `
--preset $ConfigurePreset `
${{ inputs.double == 'true' && '-DGDJ_DOUBLE_PRECISION=TRUE' || '' }} `
${{ inputs.args }}
3 changes: 3 additions & 0 deletions .github/workflows/build-android.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
name: "\
${{ matrix.platform }}-\
${{ matrix.arch }}-\
${{ matrix.double == true && 'double-' || '' }}\
${{ matrix.editor == true && 'editor-' || '' }}\
${{ matrix.config }}"

Expand All @@ -37,6 +38,7 @@ jobs:
matrix:
platform: [linux-android]
arch: [arm64, arm32, x64, x86]
double: [false, true]
editor: [false, true]
config: [debug, development, distribution]

Expand All @@ -49,6 +51,7 @@ jobs:
with:
platform: ${{ matrix.platform }}
arch: ${{ matrix.arch }}
double: ${{ matrix.double }}
env:
CXXFLAGS: -Werror

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-ios.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ jobs:
runs-on: macos-13
name: "\
${{ matrix.platform }}-\
${{ matrix.double == true && 'double-' || '' }}\
${{ matrix.editor == true && 'editor-' || '' }}\
${{ matrix.config }}"

strategy:
fail-fast: false
matrix:
platform: [macos-ios, macos-ios-simulator]
double: [false, true]
editor: [false, true]
config: [debug, development, distribution]

Expand All @@ -49,6 +51,7 @@ jobs:
uses: ./.github/actions/cmake-configure
with:
platform: ${{ matrix.platform }}
double: ${{ matrix.double }}
env:
CXXFLAGS: -Werror

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
name: "\
${{ matrix.platform }}-\
${{ matrix.arch }}-\
${{ matrix.double == true && 'double-' || '' }}\
${{ matrix.editor == true && 'editor-' || '' }}\
${{ matrix.config }}"

Expand All @@ -37,6 +38,7 @@ jobs:
matrix:
platform: [linux-clang, linux-gcc]
arch: [x64, x86]
double: [false, true]
editor: [false, true]
config: [debug, development, distribution]

Expand All @@ -60,6 +62,7 @@ jobs:
with:
platform: ${{ matrix.platform }}
arch: ${{ matrix.arch }}
double: ${{ matrix.double }}
env:
CXXFLAGS: -Werror

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,15 @@ jobs:
runs-on: macos-13
name: "\
${{ matrix.platform }}-\
${{ matrix.double == true && 'double-' || '' }}\
${{ matrix.editor == true && 'editor-' || '' }}\
${{ matrix.config }}"

strategy:
fail-fast: false
matrix:
platform: [macos-clang]
double: [false, true]
editor: [false, true]
config: [debug, development, distribution]

Expand All @@ -49,6 +51,7 @@ jobs:
uses: ./.github/actions/cmake-configure
with:
platform: ${{ matrix.platform }}
double: ${{ matrix.double }}
env:
CXXFLAGS: -Werror

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/build-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
name: "\
${{ matrix.platform }}-\
${{ matrix.arch }}-\
${{ matrix.double == true && 'double-' || '' }}\
${{ matrix.editor == true && 'editor-' || '' }}\
${{ matrix.config }}"

Expand All @@ -37,6 +38,7 @@ jobs:
matrix:
platform: [windows-msvc, windows-clangcl]
arch: [x64, x86]
double: [false, true]
editor: [false, true]
config: [debug, development, distribution]

Expand All @@ -62,6 +64,7 @@ jobs:
with:
platform: ${{ matrix.platform }}
arch: ${{ matrix.arch }}
double: ${{ matrix.double }}
args: ${{ matrix.args }}
env:
CXXFLAGS: /WX
Expand Down
Loading

0 comments on commit 3fc2425

Please sign in to comment.