From fe9e0564a4835f6e6861107fb3b3d775558bda6e Mon Sep 17 00:00:00 2001 From: Jonathan Cornaz Date: Fri, 6 May 2022 16:20:21 +0200 Subject: [PATCH] chore: optimize build time --- .github/workflows/build.yml | 8 ++------ .github/workflows/look-ahead.yml | 1 + Cargo.toml | 7 +++++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5e211ff..e5b97d9 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,13 +10,13 @@ on: env: RUST_VERSION: 1.58.0 + CARGO_INCREMENTAL: 0 + RUSTFLAGS: '-D warnings' jobs: test: runs-on: ubuntu-latest timeout-minutes: 30 - env: - RUSTFLAGS: "-D warnings" steps: - uses: actions/checkout@v3 @@ -35,8 +35,6 @@ jobs: code-style: runs-on: ubuntu-latest - env: - RUSTFLAGS: "-D warnings" steps: - uses: actions/checkout@v3 - name: Install rust toolchain @@ -50,8 +48,6 @@ jobs: documentation: runs-on: ubuntu-latest - env: - RUSTDOCFLAGS: "-D warnings" steps: - uses: actions/checkout@v3 - name: Install rust toolchain diff --git a/.github/workflows/look-ahead.yml b/.github/workflows/look-ahead.yml index b2a94da..04c0141 100644 --- a/.github/workflows/look-ahead.yml +++ b/.github/workflows/look-ahead.yml @@ -8,6 +8,7 @@ on: env: RUSTFLAGS: "-D warnings" + CARGO_INCREMENTAL: 0 jobs: next-rust: diff --git a/Cargo.toml b/Cargo.toml index ec752da..87792d3 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -20,9 +20,12 @@ bevy_asset = { version = "0.7.0", default-features = false } [dev-dependencies] bevy = { version = "0.7.0", default-features = false, features = ["render", "x11", "png"] } -rstest = "0.12.0" -criterion = "0.3.5" +rstest = { version = "0.12.0", default-features = false } +criterion = { version = "0.3.5", default-features = false } [[bench]] name = "play_component" harness = false + +[profile.dev] +debug = 0