Skip to content

Commit

Permalink
chore: moving to stable for release
Browse files Browse the repository at this point in the history
  • Loading branch information
ActuallyHappening committed Jul 7, 2023
1 parent 22cbdec commit 3c540b2
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ rustflags = ["-Clink-arg=-fuse-ld=lld", "-Zshare-generics=y"]
rustflags = [
# "-C",
# "link-arg=-fuse-ld=/usr/local/opt/llvm/bin/ld64.lld",
"-Zshare-generics=y",
# "-Zshare-generics=y",
]

[target.aarch64-apple-darwin]
rustflags = [
"-C",
"link-arg=-fuse-ld=/opt/homebrew/opt/llvm/bin/ld64.lld",
"-Zshare-generics=y",
"-C",
"target-cpu=apple-m2"
# "-Zshare-generics=y",
# "-C",
# "target-cpu=apple-m2"
]

# [target.x86_64-pc-windows-msvc]
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ opt-level = 1
opt-level = 3

[profile.release]
codegen-units = 1
# codegen-units = 1
lto = true

[dependencies.bevy]
Expand Down
5 changes: 1 addition & 4 deletions ChessBois.code-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,7 @@
},
{
"path": "."
},
{
"path": "e"
},
}
],
"settings": {
"cSpell.words": [
Expand Down
2 changes: 1 addition & 1 deletion macos-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ set -e

# fail, please confirm cargo config

cargo +nightly build --release --target x86_64-apple-darwin
cargo build --release --target x86_64-apple-darwin

# Set ENV_BINARY to bevy_solver
ENV_BINARY=bevy_solver
Expand Down
4 changes: 2 additions & 2 deletions release.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
set -e

./macos-release.sh
# ./windows-release.sh
trunk build
./windows-release.sh
trunk build --release
5 changes: 3 additions & 2 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
[toolchain]
channel = "nightly"
# channel = "stable"
channel = "stable"
# channel = "nightly"
# channel = "nightly-2023-07-06"
2 changes: 1 addition & 1 deletion windows-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ set -e
TARGET_NAME=x86_64-pc-windows-gnu
ENV_BINARY=bevy_solver

cargo +nightly bwindows --release
cargo bwindows --release

mkdir -p $ENV_BINARY.zipfolder
cp target/$TARGET_NAME/release/$ENV_BINARY.exe $ENV_BINARY.zipfolder/
Expand Down

0 comments on commit 3c540b2

Please sign in to comment.