This commit is contained in:
Edgar 2023-10-30 10:44:36 +01:00
parent f29182b48a
commit b0820fcbb4
No known key found for this signature in database
GPG key ID: 70ADAE8F35904387
3 changed files with 61 additions and 11 deletions

57
.github/workflows/release.yml vendored Normal file
View file

@ -0,0 +1,57 @@
name: Release
permissions:
contents: write
on:
release:
types: [created]
jobs:
create-release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: taiki-e/create-gh-release-action@v1
with:
# (required) GitHub token for creating GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}
upload-assets:
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Install deps (linux)
if: ${{ matrix.os == 'ubuntu-latest' }}
run: |
sudo apt-get install lld mold
- name: Install deps (macOS)
if: ${{ matrix.os == 'macos-latest' }}
run: |
brew install llvm
- name: Install deps (windows)
if: ${{ matrix.os == 'windows-latest' }}
run: |
cargo install -f cargo-binutils
rustup component add llvm-tools-preview
- uses: taiki-e/upload-rust-binary-action@v1
with:
# (required) Comma-separated list of binary names (non-extension portion of filename) to build and upload.
# Note that glob pattern is not supported yet.
bin: teecity
# (optional) On which platform to distribute the `.tar.gz` file.
# [default value: unix]
# [possible values: all, unix, windows, none]
tar: unix
# (optional) On which platform to distribute the `.zip` file.
# [default value: windows]
# [possible values: all, unix, windows, none]
zip: windows
# (required) GitHub token for uploading assets to GitHub Releases.
token: ${{ secrets.GITHUB_TOKEN }}

10
Cargo.lock generated
View file

@ -303,7 +303,6 @@ version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index" source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "91c6d3ec4f89e85294dc97334c5b271ddc301fdf67ac9bb994fe44d9273e6ed7" checksum = "91c6d3ec4f89e85294dc97334c5b271ddc301fdf67ac9bb994fe44d9273e6ed7"
dependencies = [ dependencies = [
"bevy_dylib",
"bevy_internal", "bevy_internal",
] ]
@ -504,15 +503,6 @@ dependencies = [
"sysinfo", "sysinfo",
] ]
[[package]]
name = "bevy_dylib"
version = "0.11.3"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "22ea11f830028e1c9d37f8bc88c5873f1c4c0346661209c2ba015f899c51863c"
dependencies = [
"bevy_internal",
]
[[package]] [[package]]
name = "bevy_ecs" name = "bevy_ecs"
version = "0.11.3" version = "0.11.3"

View file

@ -5,6 +5,9 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[profile.dev]
opt-level = 1
[profile.dev.package."*"] [profile.dev.package."*"]
opt-level = 3 opt-level = 3
@ -12,6 +15,6 @@ opt-level = 3
lto = "thin" lto = "thin"
[dependencies] [dependencies]
bevy = { version = "0.11", features = ["dynamic_linking"] } bevy = { version = "0.11" }
bevy-inspector-egui = "0.20" bevy-inspector-egui = "0.20"
bevy_ecs_tilemap = "0.11" bevy_ecs_tilemap = "0.11"