Skip to content

Commit

Permalink
Added a double precision test build in CI.
Browse files Browse the repository at this point in the history
  • Loading branch information
DmitriySalnikov committed Nov 5, 2024
1 parent fa564b0 commit 33b7373
Showing 1 changed file with 48 additions and 6 deletions.
54 changes: 48 additions & 6 deletions .github/workflows/gdextension_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
platform: windows
target: ${{matrix.target}}
arch: ${{matrix.arch}}
artifact: windows.${{matrix.target}}.${{matrix.arch}}
artifact: libdd3d-windows.${{matrix.target}}.${{matrix.arch}}
additional: lto=yes
output_libs_path: ${{env.OUTPUT_LIBS_PATH}}
use_cache: ${{env.USE_CACHE}}
Expand Down Expand Up @@ -100,7 +100,7 @@ jobs:
platform: linux
target: ${{matrix.target}}
arch: ${{matrix.arch}}
artifact: linux.${{matrix.target}}.${{matrix.arch}}
artifact: libdd3d-linux.${{matrix.target}}.${{matrix.arch}}
additional: lto=yes
output_libs_path: ${{env.OUTPUT_LIBS_PATH}}
use_cache: ${{env.USE_CACHE}}
Expand Down Expand Up @@ -130,7 +130,7 @@ jobs:
platform: macos
target: ${{matrix.target}}
arch: ${{matrix.arch}}
artifact: macos.${{matrix.target}}.${{matrix.arch}}
artifact: libdd3d-macos.${{matrix.target}}.${{matrix.arch}}
additional: lto=yes macos_deployment_target=10.14
output_libs_path: ${{env.OUTPUT_LIBS_PATH}}
use_cache: ${{env.USE_CACHE}}
Expand Down Expand Up @@ -160,7 +160,7 @@ jobs:
platform: ios
target: ${{matrix.target}}
arch: ${{matrix.arch}}
artifact: ios.${{matrix.target}}.${{matrix.arch}}
artifact: libdd3d-ios.${{matrix.target}}.${{matrix.arch}}
additional: lto=yes
output_libs_path: ${{env.OUTPUT_LIBS_PATH}}
use_cache: ${{env.USE_CACHE}}
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:
platform: android
target: ${{matrix.target}}
arch: ${{matrix.arch}}
artifact: android.${{matrix.target}}.${{matrix.arch}}
artifact: libdd3d-android.${{matrix.target}}.${{matrix.arch}}
additional: lto=yes
additional_enabled_dd3d: false
output_libs_path: ${{env.OUTPUT_LIBS_PATH}}
Expand Down Expand Up @@ -253,13 +253,54 @@ jobs:
platform: web
target: ${{matrix.target}}
arch: ${{matrix.arch}}
artifact: web.${{matrix.target}}.${{matrix.arch}}.threads_${{matrix.threads}}
artifact: libdd3d-web.${{matrix.target}}.${{matrix.arch}}.threads_${{matrix.threads}}
additional: lto=yes threads=${{matrix.threads}}
output_libs_path: ${{env.OUTPUT_LIBS_PATH}}
use_cache: ${{env.USE_CACHE}}

# ============================================

double-debug-gdextension:
name: "2️⃣ Double debug: ${{matrix.runner-os}}, Plat-${{matrix.platform}}"
runs-on: ${{matrix.runner-os}}

strategy:
fail-fast: false
matrix:
# sync with other jobs
runner-os: [ubuntu-20.04, macos-latest, windows-latest]
include:
- runner-os: ubuntu-20.04
platform: "linux"
arch: "x86_64"
- runner-os: macos-latest
platform: "macos"
arch: "universal"
- runner-os: windows-latest
platform: "windows"
arch: "x86_64"

steps:
- name: Checkout
uses: actions/checkout@v4
with:
submodules: recursive

- name: Compile GDExtension
uses: ./.github/actions/compile_gdextension
with:
platform: ${{matrix.platform}}
target: "editor"
arch: ${{matrix.arch}}
artifact: libdouble-${{matrix.platform}}.${{matrix.arch}}
additional: lto=yes precision=double fix_precision_enabled=yes shader_world_coords_enabled=no
output_libs_path: ${{env.OUTPUT_LIBS_PATH}}
use_cache: ${{env.USE_CACHE}}
token: ${{secrets.TELEMETRY_TOKEN}}


# ============================================

collect-gdextension:
needs:
[
Expand All @@ -282,6 +323,7 @@ jobs:
- name: Download Binaries
uses: actions/download-artifact@v4
with:
pattern: libdd3d-*
path: extracted_files

- name: Store all libraries in one directory
Expand Down

0 comments on commit 33b7373

Please sign in to comment.