Skip to content
This repository was archived by the owner on Jun 16, 2020. It is now read-only.

Commit 96580c4

Browse files
committed
CI: Only run compare-master.sh on pull requests
And only run it on nightly Rust, rather than on all of nightly, beta, and stable.
1 parent 8449d2e commit 96580c4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ jobs:
1515
- name: Install Rust
1616
run: rustup update ${{ matrix.rust }} --no-self-update && rustup default ${{ matrix.rust }}
1717
- run: ./test-all.sh
18+
19+
compare_master:
20+
name: "Compare Benchmarks to `master`"
21+
if: github.event_name == "pull_request"
22+
steps:
23+
- uses: actions/checkout@v1
24+
with:
25+
submodules: true
26+
- name: Install Rust
27+
run: rustup update nightly --no-self-update && rustup default nightly
1828
- run: ./compare-master.sh
1929

2030
rustfmt:

0 commit comments

Comments
 (0)