Skip to content

Commit a9fdb86

Browse files
authored
Bevy 0.13 migration (#106)
* make bevy 0.13 compile * cargo fmt * optimize CI * update CI * reduce size of builds * fix examples
1 parent 9788eb5 commit a9fdb86

File tree

22 files changed

+1050
-591
lines changed

22 files changed

+1050
-591
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,9 @@ jobs:
4343
command: check
4444
args: --workspace --features=${{ matrix.run_args.lua }},rhai,teal,lua_script_api,rhai_script_api,rune
4545
# for non x86 cross-compiled builds
46+
- if: matrix.run_args.cross != null
47+
name: Clear space
48+
run: sudo rm -rf /usr/share/dotnet; sudo rm -rf /opt/ghc; sudo rm -rf "/usr/local/share/boost"; sudo rm -rf "$AGENT_TOOLSDIRECTORY"
4649
- if: matrix.run_args.cross != null
4750
uses: houseabsolute/actions-rust-cross@v0
4851
with:
@@ -92,18 +95,10 @@ jobs:
9295
name: Tests
9396
runs-on: ubuntu-latest
9497
steps:
95-
- name: Maximize build space
96-
uses: easimon/maximize-build-space@master
97-
with:
98-
root-reserve-mb: 512
99-
swap-size-mb: 1024
100-
remove-dotnet: 'true'
98+
- name: Clear space
99+
run: sudo rm -rf /usr/share/dotnet; sudo rm -rf /opt/ghc; sudo rm -rf "/usr/local/share/boost"; sudo rm -rf "$AGENT_TOOLSDIRECTORY"
101100
- name: Checkout
102101
uses: actions/checkout@v3
103-
- name: Build
104-
run: |
105-
echo "Free space:"
106-
df -h
107102
- name: Install alsa and udev
108103
run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev
109104
- uses: actions/checkout@v2

Cargo.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ rhai_script_api = ["bevy_script_api/rhai"]
6161
rune = ["bevy_mod_scripting_rune"]
6262

6363
[dependencies]
64-
bevy = { version = "0.12", default-features = false }
64+
bevy = { version = "0.13", default-features = false }
6565
bevy_mod_scripting_core = { path = "bevy_mod_scripting_core", version = "0.4.0" }
6666
bevy_mod_scripting_lua = { path = "languages/bevy_mod_scripting_lua", version = "0.4.0", optional = true }
6767
bevy_mod_scripting_rhai = { path = "languages/bevy_mod_scripting_rhai", version = "0.4.0", optional = true }
@@ -70,10 +70,10 @@ bevy_script_api = { path = "bevy_script_api", version = "0.4.0", optional = true
7070

7171

7272
[dev-dependencies]
73-
bevy = { version = "0.12" }
73+
bevy = { version = "0.13" }
7474
clap = { version = "4.1", features = ["derive"] }
7575
rand = "0.8.5"
76-
bevy_console = "0.10.1"
76+
bevy_console = "0.11.1"
7777
rhai-rand = "0.1"
7878

7979
[workspace]
@@ -102,6 +102,8 @@ opt-level = 3
102102
inherits = "dev"
103103
opt-level = 2
104104
codegen-units = 8
105+
incremental = false
106+
debug = false
105107

106108

107109
[[example]]

0 commit comments

Comments
 (0)