diff --git a/.github/workflows/blockifier_ci.yml b/.github/workflows/blockifier_ci.yml index ec3655e2bf..407c210bd0 100644 --- a/.github/workflows/blockifier_ci.yml +++ b/.github/workflows/blockifier_ci.yml @@ -34,6 +34,9 @@ on: - 'scripts/install_build_tools.sh' - 'scripts/sequencer-ci.Dockerfile' +env: + RUSTFLAGS: "-D warnings" + # On PR events, cancel existing CI runs on this same PR for this workflow. concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job }} diff --git a/.github/workflows/blockifier_compiled_cairo.yml b/.github/workflows/blockifier_compiled_cairo.yml index afc3099d4f..f3df06a83d 100644 --- a/.github/workflows/blockifier_compiled_cairo.yml +++ b/.github/workflows/blockifier_compiled_cairo.yml @@ -15,6 +15,9 @@ on: - 'crates/blockifier/tests/requirements.txt' - 'scripts/dependencies.sh' +env: + RUSTFLAGS: "-D warnings" + # On PR events, cancel existing CI runs on this same PR for this workflow. concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job }} diff --git a/.github/workflows/blockifier_reexecution_ci.yml b/.github/workflows/blockifier_reexecution_ci.yml index 6dde67dd70..ebdd1eb9c1 100644 --- a/.github/workflows/blockifier_reexecution_ci.yml +++ b/.github/workflows/blockifier_reexecution_ci.yml @@ -19,6 +19,9 @@ on: - 'scripts/install_build_tools.sh' - 'scripts/sequencer-ci.Dockerfile' +env: + RUSTFLAGS: "-D warnings" + # On PR events, cancel existing CI runs on this same PR for this workflow. concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job }} diff --git a/.github/workflows/committer_ci.yml b/.github/workflows/committer_ci.yml index bd91e8b39b..c284523ed1 100644 --- a/.github/workflows/committer_ci.yml +++ b/.github/workflows/committer_ci.yml @@ -18,6 +18,9 @@ on: - 'crates/starknet_patricia/**' - 'scripts/dependencies.sh' +env: + RUSTFLAGS: "-D warnings" + # On PR events, cancel existing CI runs on this same PR for this workflow. concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job }} diff --git a/.github/workflows/committer_cli_push.yml b/.github/workflows/committer_cli_push.yml index 8475728b12..5690590674 100644 --- a/.github/workflows/committer_cli_push.yml +++ b/.github/workflows/committer_cli_push.yml @@ -34,6 +34,9 @@ on: - 'crates/starknet_patricia/**' - 'scripts/dependencies.sh' +env: + RUSTFLAGS: "-D warnings" + # On PR events, cancel existing CI runs on this same PR for this workflow. concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job }} diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 42e201a850..c13d3504dc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,6 +18,7 @@ on: env: CI: 1 + RUSTFLAGS: "-D warnings" # On PR events, cancel existing CI runs on this same PR for this workflow. concurrency: diff --git a/.github/workflows/main_pr.yml b/.github/workflows/main_pr.yml index a3d5cfe094..93540b13e6 100644 --- a/.github/workflows/main_pr.yml +++ b/.github/workflows/main_pr.yml @@ -9,6 +9,9 @@ on: - auto_merge_enabled - edited +env: + RUSTFLAGS: "-D warnings" + # On PR events, cancel existing CI runs on this same PR for this workflow. concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job }} diff --git a/.github/workflows/papyrus_ci.yml b/.github/workflows/papyrus_ci.yml index ca95f58837..cf8f68ede8 100644 --- a/.github/workflows/papyrus_ci.yml +++ b/.github/workflows/papyrus_ci.yml @@ -22,6 +22,9 @@ on: merge_group: types: [checks_requested] +env: + RUSTFLAGS: "-D warnings" + # On PR events, cancel existing CI runs on this same PR for this workflow. concurrency: group: ${{ github.workflow }}-${{ github.ref }}-${{ github.job }} diff --git a/.github/workflows/papyrus_docker-publish.yml b/.github/workflows/papyrus_docker-publish.yml index bf2559ce2b..8f6d57f347 100644 --- a/.github/workflows/papyrus_docker-publish.yml +++ b/.github/workflows/papyrus_docker-publish.yml @@ -28,6 +28,7 @@ concurrency: env: REGISTRY: ghcr.io REPO_NAME: ${{ github.repository }} + RUSTFLAGS: "-D warnings" jobs: docker-build-push: diff --git a/.github/workflows/papyrus_nightly-tests-call.yml b/.github/workflows/papyrus_nightly-tests-call.yml index d05d1938e0..dc5896a66e 100644 --- a/.github/workflows/papyrus_nightly-tests-call.yml +++ b/.github/workflows/papyrus_nightly-tests-call.yml @@ -16,6 +16,9 @@ on: SLACK_ALERT_CHANNEL: required: true +env: + RUSTFLAGS: "-D warnings" + jobs: GW-integration-test-call: runs-on: ${{ inputs.os }} diff --git a/.github/workflows/papyrus_nightly-tests.yml b/.github/workflows/papyrus_nightly-tests.yml index 0592f28e3e..1f913a92b8 100644 --- a/.github/workflows/papyrus_nightly-tests.yml +++ b/.github/workflows/papyrus_nightly-tests.yml @@ -6,6 +6,9 @@ on: - cron: '30 0 * * *' # Uses macos runner. workflow_dispatch: # Uses ubuntu runner. +env: + RUSTFLAGS: "-D warnings" + jobs: GW-integration-test-ubuntu: uses: ./.github/workflows/papyrus_nightly-tests-call.yml diff --git a/.github/workflows/upload_artifacts_workflow.yml b/.github/workflows/upload_artifacts_workflow.yml index 579aa8b390..4ed76eafb4 100644 --- a/.github/workflows/upload_artifacts_workflow.yml +++ b/.github/workflows/upload_artifacts_workflow.yml @@ -5,6 +5,9 @@ on: workflows: [Trigger-Workflow] types: [completed] +env: + RUSTFLAGS: "-D warnings" + jobs: native-blockifier-artifacts-push: runs-on: starkware-ubuntu-20-04-medium diff --git a/.github/workflows/verify-deps.yml b/.github/workflows/verify-deps.yml index 8582cb1b6b..58c2897f8c 100644 --- a/.github/workflows/verify-deps.yml +++ b/.github/workflows/verify-deps.yml @@ -4,6 +4,9 @@ on: schedule: - cron: '0 0 * * *' # Runs at 00:00 UTC every day +env: + RUSTFLAGS: "-D warnings" + jobs: latest_deps: name: Latest Dependencies