11name : ' CI'
2- on :
3- pull_request_target :
4- types :
5- - opened
6- - synchronize
7- - labeled
8- - reopened
9-
10- permissions :
11- contents : read
12- pull-requests : read
2+ on : pull_request
133
144env :
155 RUST_BACKTRACE : 1
166 CARGO_TERM_COLOR : always
177
188jobs :
19- check-user-trust :
20- runs-on : ubuntu-latest
21- outputs :
22- is-trusted : ${{ steps.check.outputs.is_trusted }}
23- steps :
24- - name : Check if PR sender is trusted
25- id : check
26- run : |
27- ASSOC="${{ github.event.sender.author_association }}"
28- echo "Sender association: $ASSOC"
29- if [[ "$ASSOC" == "OWNER" || "$ASSOC" == "MEMBER" || "$ASSOC" == "COLLABORATOR" ]]; then
30- echo "trusted=true" >> $GITHUB_OUTPUT
31- else
32- echo "trusted=false" >> $GITHUB_OUTPUT
33- fi
34-
359 test-stable-hosted :
3610 strategy :
3711 fail-fast : false
4014 - [self-hosted, Linux, amd64]
4115 - [self-hosted, Linux, aarch64]
4216 name : Rust stable
43- needs : check-user-trust
44- if : needs.check-user-trust.outputs.is_trusted == 'true'
4517 runs-on : ${{matrix.os}}
4618 timeout-minutes : 45
4719 steps :
5022 - run : ./scripts/test.sh
5123
5224 test-stable-wasm :
53- needs : check-user-trust
54- if : needs.check-user-trust.outputs.is_trusted == 'true'
5525 runs-on : [self-hosted, Linux, amd64]
5626 env :
5727 WASMTIME_BACKTRACE_DETAILS : 1
7242
7343
7444 test-nightly-hosted :
75- needs : check-user-trust
76- if : needs.check-user-trust.outputs.is_trusted == 'true'
7745 strategy :
7846 fail-fast : false
7947 matrix :
8957 - run : ./scripts/test.sh
9058
9159 clippy_lint :
92- needs : check-user-trust
93- if : needs.check-user-trust.outputs.is_trusted == 'true'
9460 name : Format check
9561 runs-on : [self-hosted, Linux, amd64]
9662 timeout-minutes : 45
10571 cargo fmt -- --check
10672
10773 sanitize :
108- needs : check-user-trust
109- if : needs.check-user-trust.outputs.is_trusted == 'true'
11074 strategy :
11175 fail-fast : false
11276 matrix :
12690 run : ./scripts/sanitize.sh ${{matrix.san}} ${{matrix.feature}}
12791
12892 fuzz :
129- needs : check-user-trust
130- if : needs.check-user-trust.outputs.is_trusted == 'true'
13193 runs-on : [self-hosted, Linux, amd64]
13294 steps :
13395 - uses : actions/checkout@v4
@@ -139,15 +101,3 @@ jobs:
139101 token : ${{ secrets.GITHUB_TOKEN }}
140102 - name : Fuzz
141103 run : ./scripts/fuzz.sh
142-
143- security-audit :
144- needs : check-user-trust
145- if : needs.check-user-trust.outputs.is_trusted == 'true'
146- runs-on : [self-hosted, Linux, amd64]
147- steps :
148- - uses : actions/checkout@v4
149- - uses : dtolnay/rust-toolchain@stable
150- - uses : actions-rs/audit-check@v1
151- with :
152- token : ${{ secrets.GITHUB_TOKEN }}
153-
0 commit comments