diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..fe7217e --- /dev/null +++ b/.github/workflows/release.yml @@ -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 }} diff --git a/Cargo.lock b/Cargo.lock index e59b623..992ca83 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -303,7 +303,6 @@ version = "0.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "91c6d3ec4f89e85294dc97334c5b271ddc301fdf67ac9bb994fe44d9273e6ed7" dependencies = [ - "bevy_dylib", "bevy_internal", ] @@ -504,15 +503,6 @@ dependencies = [ "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]] name = "bevy_ecs" version = "0.11.3" diff --git a/Cargo.toml b/Cargo.toml index 584bdf7..3489e79 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -5,6 +5,9 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html +[profile.dev] +opt-level = 1 + [profile.dev.package."*"] opt-level = 3 @@ -12,6 +15,6 @@ opt-level = 3 lto = "thin" [dependencies] -bevy = { version = "0.11", features = ["dynamic_linking"] } +bevy = { version = "0.11" } bevy-inspector-egui = "0.20" bevy_ecs_tilemap = "0.11"