Skip to content

Commit 2609edf

Browse files
jedel1043hansl
authored andcommitted
Allow warnings when running CI on release branches (boa-dev#3990)
1 parent 98e4c8d commit 2609edf

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
timeout-minutes: 60
1111
env:
12-
RUSTFLAGS: -D warnings
12+
RUSTFLAGS: ${{ github.ref == 'refs/heads/main' && '-D warnings' || '' }}
1313
steps:
1414
- name: Checkout repository
1515
uses: actions/checkout@v4

.github/workflows/rust.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,14 @@ on:
1313
types: [checks_requested]
1414

1515
env:
16-
RUSTFLAGS: -Dwarnings
16+
RUSTFLAGS: ${{ github.ref == 'refs/heads/main' && '-D warnings' || '' }}
1717

1818
jobs:
1919
coverage:
2020
name: Coverage
2121
runs-on: ubuntu-latest
2222
timeout-minutes: 60
23+
if: github.ref == 'refs/heads/main'
2324
steps:
2425
- name: Checkout repository
2526
uses: actions/checkout@v4
@@ -151,7 +152,7 @@ jobs:
151152
runs-on: ubuntu-latest
152153
timeout-minutes: 60
153154
env:
154-
RUSTDOCFLAGS: -D warnings
155+
RUSTDOCFLAGS: ${{ github.ref == 'refs/heads/main' && '-D warnings' || '' }}
155156
steps:
156157
- name: Checkout repository
157158
uses: actions/checkout@v4

.github/workflows/webassembly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
timeout-minutes: 60
3030
env:
3131
WASM_PACK_PATH: ~/.cargo/bin/wasm-pack
32-
RUSTFLAGS: -D warnings
32+
RUSTFLAGS: ${{ github.ref == 'refs/heads/main' && '-Dwarnings' || '' }}
3333
steps:
3434
- name: Checkout repository
3535
uses: actions/checkout@v4

0 commit comments

Comments
 (0)