Browse Source

Allow warnings when running CI on release branches (#3990)

pull/3991/head
José Julián Espina 2 months ago committed by GitHub
parent
commit
4c5df56b16
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 2
      .github/workflows/release.yml
  2. 5
      .github/workflows/rust.yml
  3. 2
      .github/workflows/webassembly.yml

2
.github/workflows/release.yml

@ -9,7 +9,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
env:
RUSTFLAGS: -D warnings
RUSTFLAGS: ${{ github.ref == 'refs/heads/main' && '-D warnings' || '' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

5
.github/workflows/rust.yml

@ -13,13 +13,14 @@ on:
types: [checks_requested]
env:
RUSTFLAGS: -Dwarnings
RUSTFLAGS: ${{ github.ref == 'refs/heads/main' && '-D warnings' || '' }}
jobs:
coverage:
name: Coverage
runs-on: ubuntu-latest
timeout-minutes: 60
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout repository
uses: actions/checkout@v4
@ -151,7 +152,7 @@ jobs:
runs-on: ubuntu-latest
timeout-minutes: 60
env:
RUSTDOCFLAGS: -D warnings
RUSTDOCFLAGS: ${{ github.ref == 'refs/heads/main' && '-D warnings' || '' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

2
.github/workflows/webassembly.yml

@ -29,7 +29,7 @@ jobs:
timeout-minutes: 60
env:
WASM_PACK_PATH: ~/.cargo/bin/wasm-pack
RUSTFLAGS: -D warnings
RUSTFLAGS: ${{ github.ref == 'refs/heads/main' && '-Dwarnings' || '' }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

Loading…
Cancel
Save