From fc700e5fa0477fb71954791b767b0de3f05aac45 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Mon, 5 Dec 2022 00:53:45 +0100 Subject: [PATCH 1/3] add msrv --- Cargo.toml | 1 + 1 file changed, 1 insertion(+) diff --git a/Cargo.toml b/Cargo.toml index c6ec1f14d6bd0..9a86a3793a694 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,6 +10,7 @@ keywords = ["game", "engine", "gamedev", "graphics", "bevy"] license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/bevyengine/bevy" +rust-version = "1.65.0" [workspace] exclude = ["benches", "crates/bevy_ecs_compile_fail_tests"] From f8270760fa0d36cfbe24d1f2965e7ce693773dfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Mon, 5 Dec 2022 00:54:05 +0100 Subject: [PATCH 2/3] add check in CI --- .github/bors.toml | 1 + .github/workflows/ci.yml | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) diff --git a/.github/bors.toml b/.github/bors.toml index 7c237230f15ca..087a395e95150 100644 --- a/.github/bors.toml +++ b/.github/bors.toml @@ -17,6 +17,7 @@ status = [ "build-without-default-features (bevy)", "build-without-default-features (bevy_ecs)", "build-without-default-features (bevy_reflect)", + "msrv", ] use_squash_merge = true diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f28aca435c222..723f5f4859268 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -274,3 +274,29 @@ jobs: run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev - name: Run cargo udeps run: cargo udeps + + msrv: + runs-on: ubuntu-latest + needs: build + steps: + - uses: actions/checkout@v3 + - uses: actions/cache@v3 + with: + path: | + ~/.cargo/bin/ + ~/.cargo/registry/index/ + ~/.cargo/registry/cache/ + ~/.cargo/git/db/ + target/ + key: ${{ runner.os }}-cargo-msrv-${{ hashFiles('**/Cargo.toml') }} + - name: get MSRV + run: | + msrv=`cargo metadata --no-deps --format-version 1 | jq --raw-output '.packages[] | select(.name=="bevy") | .rust_version'` + echo "MSRV=$msrv" >> $GITHUB_ENV + - uses: dtolnay/rust-toolchain@master + with: + toolchain: ${{ env.MSRV }} + - name: Install alsa and udev + run: sudo apt-get update; sudo apt-get install --no-install-recommends libasound2-dev libudev-dev + - name: Run cargo check + run: cargo check From 46bde96619971ff268d1d69b46f4b0e0b5964707 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois?= Date: Mon, 9 Jan 2023 00:26:27 +0100 Subject: [PATCH 3/3] update rust version Co-authored-by: Alice Cecile --- Cargo.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cargo.toml b/Cargo.toml index 9a86a3793a694..9a315271cf232 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -10,7 +10,7 @@ keywords = ["game", "engine", "gamedev", "graphics", "bevy"] license = "MIT OR Apache-2.0" readme = "README.md" repository = "https://github.com/bevyengine/bevy" -rust-version = "1.65.0" +rust-version = "1.66.0" [workspace] exclude = ["benches", "crates/bevy_ecs_compile_fail_tests"]