Skip to content
This repository has been archived by the owner on Oct 28, 2023. It is now read-only.

Commit

Permalink
upd
Browse files Browse the repository at this point in the history
  • Loading branch information
Ughuuu committed Oct 24, 2023
1 parent ee2c41c commit 4afbb40
Show file tree
Hide file tree
Showing 12 changed files with 22 additions and 23 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/android_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
matrix:
target: [template_debug, template_release]
arch: [x86_64] # Todo reenable arm64
precision: [single, double]
precision: [single]#, double]
features: [simd-stable, simd-nightly, parallel, enhanced-determinism]

steps:
Expand All @@ -28,7 +28,7 @@ jobs:
distribution: temurin
java-version: 11

- name: Build ${{ matrix.target }} ${{ matrix.arch }}
- name: Build ${{ matrix.target }} ${{ matrix.arch }} ${{ matrix.precision }} ${{ matrix.features }}
uses: ./.github/actions/build
with:
sconsflags: ${{ env.SCONSFLAGS }}
Expand All @@ -38,7 +38,7 @@ jobs:
precision: ${{ matrix.precision }}
features: ${{ matrix.features }}

- name: Upload ${{ matrix.target }} ${{ matrix.arch }}
- name: Upload ${{ matrix.target }} ${{ matrix.arch }} ${{ matrix.precision }} ${{ matrix.features }}
uses: ./.github/actions/upload
with:
precision: ${{ matrix.precision }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/ios_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@ jobs:
target: [template_debug, template_release]
arch: [arm64]
precision: [single, double]
features: [simd-stable, simd-nightly, parallel, enhanced-determinism]
features: [simd-stable], simd-nightly, parallel, enhanced-determinism]

steps:
- uses: actions/checkout@v3
with:
submodules: true
- name: Build ${{ matrix.target }} ${{ matrix.arch }}
- name: Build ${{ matrix.target }} ${{ matrix.arch }} ${{ matrix.precision }} ${{ matrix.features }}
uses: ./.github/actions/build
with:
sconsflags: ${{ env.SCONSFLAGS }}
Expand All @@ -32,7 +32,7 @@ jobs:
precision: ${{ matrix.precision }}
features: ${{ matrix.features }}

- name: Upload ${{ matrix.target }} ${{ matrix.arch }}
- name: Upload ${{ matrix.target }} ${{ matrix.arch }} ${{ matrix.precision }} ${{ matrix.features }}
uses: ./.github/actions/upload
with:
precision: ${{ matrix.precision }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/linux_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
with:
submodules: true

- name: Build ${{ matrix.target }} ${{ matrix.arch }}
- name: Build ${{ matrix.target }} ${{ matrix.arch }} ${{ matrix.precision }} ${{ matrix.features }}
uses: ./.github/actions/build
with:
sconsflags: ${{ env.SCONSFLAGS }}
Expand All @@ -33,7 +33,7 @@ jobs:
precision: ${{ matrix.precision }}
features: ${{ matrix.features }}

- name: Upload ${{ matrix.target }} ${{ matrix.arch }}
- name: Upload ${{ matrix.target }} ${{ matrix.arch }} ${{ matrix.precision }} ${{ matrix.features }}
uses: ./.github/actions/upload
with:
precision: ${{ matrix.precision }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/macos_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
with:
submodules: true

- name: Build ${{ matrix.target }} ${{ matrix.arch }}
- name: Build ${{ matrix.target }} ${{ matrix.arch }} ${{ matrix.precision }} ${{ matrix.features }}
uses: ./.github/actions/build
with:
sconsflags: ${{ env.SCONSFLAGS }}
Expand All @@ -35,7 +35,7 @@ jobs:
precision: ${{ matrix.precision }}
features: ${{ matrix.features }}

- name: Sign frameworks
- name: Sign frameworks ${{ matrix.target }} ${{ matrix.arch }} ${{ matrix.precision }} ${{ matrix.features }}
shell: pwsh
env:
APPLE_CERT_BASE64: ${{ secrets.PROD_MACOS_CERTIFICATE }}
Expand All @@ -47,7 +47,7 @@ jobs:
run: ./scripts/ci-sign-macos.ps1 bin/addons/godot-rapier2d/bin/libphysics_server_rapier2d.macos.${{ matrix.target }}.framework
if: ${{ env.APPLE_DEV_ID }}

- name: Upload ${{ matrix.target }} ${{ matrix.arch }}
- name: Upload ${{ matrix.target }} ${{ matrix.arch }} ${{ matrix.precision }} ${{ matrix.features }}
uses: ./.github/actions/upload
with:
precision: ${{ matrix.precision }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/web_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ jobs:
run: |
emcc -v
- name: Build ${{ matrix.target }} ${{ matrix.arch }}
- name: Build ${{ matrix.target }} ${{ matrix.arch }} ${{ matrix.precision }} ${{ matrix.features }}
uses: ./.github/actions/build
with:
sconsflags: ${{ env.SCONSFLAGS }}
Expand All @@ -45,7 +45,7 @@ jobs:
precision: ${{ matrix.precision }}
features: ${{ matrix.features }}

- name: Upload ${{ matrix.target }} ${{ matrix.arch }}
- name: Upload ${{ matrix.target }} ${{ matrix.arch }} ${{ matrix.precision }} ${{ matrix.features }}
uses: ./.github/actions/upload
with:
precision: ${{ matrix.precision }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/windows_builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
- name: Setup MSVC problem matcher
uses: ammaraskar/msvc-problem-matcher@master

- name: Build ${{ matrix.target }} ${{ matrix.arch }}
- name: Build ${{ matrix.target }} ${{ matrix.arch }} ${{ matrix.precision }} ${{ matrix.features }}
uses: ./.github/actions/build
with:
sconsflags: ${{ env.SCONSFLAGS }}
Expand All @@ -35,7 +35,7 @@ jobs:
precision: ${{ matrix.precision }}
features: ${{ matrix.features }}

- name: Upload ${{ matrix.target }} ${{ matrix.arch }}
- name: Upload ${{ matrix.target }} ${{ matrix.arch }} ${{ matrix.precision }} ${{ matrix.features }}
uses: ./.github/actions/upload
with:
precision: ${{ matrix.precision }}
Expand Down
1 change: 0 additions & 1 deletion SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ env.Append(LIBS=[lib])
## Sources
env.Append(CPPPATH=["src/"])
sources = [Glob("src/*.cpp"),Glob("src/bodies/*.cpp"),Glob("src/joints/*.cpp"),Glob("src/servers/*.cpp"),Glob("src/shapes/*.cpp"),Glob("src/spaces/*.cpp")]
#sources = Glob("src/*.cpp")

if env["platform"] == "windows":
env.Append(CPPDEFINES="WINDOWS_ENABLED")
Expand Down
2 changes: 1 addition & 1 deletion src/bodies/rapier_body_2d.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#include "rapier_body_2d.h"

#include "../spaces/rapier_space_2d.h"
#include "rapier_body_direct_state_2d.h"
#include "rapier_direct_body_state_2d.h"

void RapierBody2D::_mass_properties_changed() {
if (!get_space()) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "rapier_body_direct_state_2d.h"
#include "rapier_direct_body_state_2d.h"

#include "../servers/rapier_physics_server_2d.h"
#include "../spaces/rapier_direct_space_state_2d.h"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef RAPIER_BODY_DIRECT_STATE_2D_H
#define RAPIER_BODY_DIRECT_STATE_2D_H
#ifndef RAPIER_DIRECT_BODY_STATE_2D_H
#define RAPIER_DIRECT_BODY_STATE_2D_H

#include <godot_cpp/classes/physics_direct_body_state2d.hpp>
#include <godot_cpp/classes/physics_direct_body_state2d_extension.hpp>
Expand Down Expand Up @@ -78,4 +78,4 @@ class RapierDirectBodyState2D : public PhysicsDirectBodyState2DExtension {
virtual double _get_step() const override;
};

#endif // RAPIER_BODY_DIRECT_STATE_2D_H
#endif // RAPIER_DIRECT_BODY_STATE_2D_H
2 changes: 1 addition & 1 deletion src/register_types.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
#include <godot_cpp/godot.hpp>
#include <godot_cpp/variant/callable.hpp>

#include "bodies/rapier_body_direct_state_2d.h"
#include "bodies/rapier_direct_body_state_2d.h"
#include "servers/rapier_physics_server_2d.h"
#include "servers/rapier_project_settings.h"
#include "spaces/rapier_direct_space_state_2d.h"
Expand Down
2 changes: 1 addition & 1 deletion src/servers/rapier_physics_server_2d.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#include "rapier_physics_server_2d.h"

#include "../bodies/rapier_body_direct_state_2d.h"
#include "../bodies/rapier_direct_body_state_2d.h"

#include "../spaces/rapier_direct_space_state_2d.h"

Expand Down

0 comments on commit 4afbb40

Please sign in to comment.