From 816ab9b38143694d0c8aaee6a55372465db6d985 Mon Sep 17 00:00:00 2001 From: Nolan Darilek Date: Sat, 6 Jul 2024 11:42:32 -0500 Subject: [PATCH] chore: Upgrade to Bevy 0.14. --- .drone.yml | 40 ------------------------------- .gitea/workflows/ci.yml | 39 ++++++++++++++++++++++++++++++ .gitea/workflows/dependencies.yml | 6 +++++ Cargo.toml | 4 ++-- 4 files changed, 47 insertions(+), 42 deletions(-) delete mode 100644 .drone.yml create mode 100644 .gitea/workflows/ci.yml create mode 100644 .gitea/workflows/dependencies.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index b244de1..0000000 --- a/.drone.yml +++ /dev/null @@ -1,40 +0,0 @@ -kind: pipeline -type: docker -name: default - -steps: - - name: test - image: rust:bullseye - pull: always - commands: - - rustup component add clippy rustfmt - - cargo fmt --check - - cargo test - - cargo clippy - - name: release - image: rust:bullseye - pull: always - commands: - - cargo publish - when: - ref: - - refs/tags/v* - environment: - CARGO_REGISTRY_TOKEN: - from_secret: cargo_registry_token - - name: discord notification - image: appleboy/drone-discord - when: - status: [success, failure] - settings: - webhook_id: - from_secret: discord_webhook_id - webhook_token: - from_secret: discord_webhook_token - tts: true - message: > - {{#success build.status}} - {{repo.name}} build {{build.number}} succeeded: <{{build.link}}> - {{else}} - {{repo.name}} build {{build.number}} failed: <{{build.link}}> - {{/success}} diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml new file mode 100644 index 0000000..e1a749c --- /dev/null +++ b/.gitea/workflows/ci.yml @@ -0,0 +1,39 @@ +name: CI + +on: + pull_request: + push: + +jobs: + test: + strategy: + matrix: + # os: [windows-latest, ubuntu-latest, macos-latest] + os: [ubuntu-latest] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v4 + with: + submodules: "true" + - uses: actions/cache@v4 + with: + path: ~/.cache/pre-commit + key: pre-commit|${{ env.PY }}|${{ hashFiles('.pre-commit-config.yaml') }} + - uses: actions/cache@v4 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }} + - uses: dtolnay/rust-toolchain@master + with: + toolchain: stable + components: rustfmt, clippy + - name: install Linux build dependencies + run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libasound2-dev libudev-dev libspeechd-dev libwayland-dev libclang-dev cmake + if: runner.os == 'linux' + - uses: actions/setup-python@v3 + - uses: pre-commit/action@v3.0.1 diff --git a/.gitea/workflows/dependencies.yml b/.gitea/workflows/dependencies.yml new file mode 100644 index 0000000..cec9a3d --- /dev/null +++ b/.gitea/workflows/dependencies.yml @@ -0,0 +1,6 @@ +name: install Linux build dependencies +runs: + using: composite + steps: + - run: sudo apt-get update; sudo apt-get install -y --no-install-recommends libasound2-dev libudev-dev libspeechd-dev libwayland-dev libclang-dev cmake + if: runner.os == 'linux' diff --git a/Cargo.toml b/Cargo.toml index 7e9e78e..5c6ccd6 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,11 +9,11 @@ edition = "2021" # See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html [dependencies] -bevy = { version = "0.13", default-features = false } +bevy = { version = "0.14", default-features = false } ctrlc = "3" [target.'cfg(windows)'.dependencies] -windows = { version = "0.56", features = [ +windows = { version = "0.58", features = [ "Win32_Foundation", "Win32_System_Power", "Win32_System_Registry",