From 3a3136b65a9b2ba7fe8747ba48f55eacf3fc0368 Mon Sep 17 00:00:00 2001 From: hrzlgnm Date: Sat, 2 Nov 2024 11:18:50 +0100 Subject: [PATCH] chore: Move treat warnings as error flag to config (#484) --- .cargo/config.toml | 2 ++ .github/workflows/android.yml | 1 - .github/workflows/desktop-tauri.yml | 1 - 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 00000000..0eb087ef --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[build] +rustflags = ["-D", "warnings"] diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 315cd00d..c6a9e5d4 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -79,7 +79,6 @@ 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 e3cb8530..0a506ab7 100644 --- a/.github/workflows/desktop-tauri.yml +++ b/.github/workflows/desktop-tauri.yml @@ -131,7 +131,6 @@ 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 }}