From 457172e99bdafa9e68061da959f078be58f6e97a Mon Sep 17 00:00:00 2001 From: hrzlgnm Date: Tue, 26 Nov 2024 22:20:46 +0100 Subject: [PATCH] Revert "chore: Move treat warnings as error flag to config (#484)" This reverts commit 3a3136b65a9b2ba7fe8747ba48f55eacf3fc0368. --- .cargo/config.toml | 2 -- .github/workflows/android.yml | 1 + .github/workflows/desktop-tauri.yml | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) delete mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml deleted file mode 100644 index 0eb087e..0000000 --- a/.cargo/config.toml +++ /dev/null @@ -1,2 +0,0 @@ -[build] -rustflags = ["-D", "warnings"] diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 8a4f6e2..d817fe9 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -69,6 +69,7 @@ jobs: cargo --locked auditable tauri android build env: NDK_HOME: ${{ env.ANDROID_HOME }}/ndk/27.0.11902837 + RUSTFLAGS: "-D warnings" - name: 🔑 Extract android signing key from env (publish only) run: | diff --git a/.github/workflows/desktop-tauri.yml b/.github/workflows/desktop-tauri.yml index c650f2e..ab8d57b 100644 --- a/.github/workflows/desktop-tauri.yml +++ b/.github/workflows/desktop-tauri.yml @@ -133,6 +133,7 @@ jobs: - name: 🔨 Build using tauri action (publish artifacts on release) uses: tauri-apps/tauri-action@8c3e0753aa015d00d03631d6d4f64ad59489251d # v0.5.15 env: + RUSTFLAGS: "-D warnings" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} TAURI_SIGNING_PRIVATE_KEY: ${{ secrets.TAURI_PRIVATE_KEY }} TAURI_SIGNING_PRIVATE_KEY_PASSWORD: ${{ secrets.TAURI_KEY_PASSWORD }}