Skip to content

Commit b95dc4e

Browse files
committed
fix(ci): use GITHUB_TOKEN to prevent MacOS timeouts
See: moonrepo/setup-rust#22
1 parent 83414b0 commit b95dc4e

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515
- uses: moonrepo/setup-rust@v1
1616
with:
1717
components: rustfmt, clippy
18+
env:
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1820
- uses: pre-commit/action@v3.0.1
1921
with:
2022
extra_args: --all-files
@@ -44,6 +46,8 @@ jobs:
4446
- uses: moonrepo/setup-rust@v1
4547
with:
4648
bins: cargo-msrv
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4751
- name: Check cospeed MSRV
4852
run: cargo msrv --path crates/codspeed verify -- cargo check --all-features --config codspeed=true
4953
- name: Check bencher_compat MSRV
@@ -60,6 +64,8 @@ jobs:
6064
with:
6165
submodules: true
6266
- uses: moonrepo/setup-rust@v1
67+
env:
68+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6369
- run: cargo test --all
6470

6571
compat-integration-test-instrumentation:
@@ -79,6 +85,8 @@ jobs:
7985
- uses: moonrepo/setup-rust@v1
8086
with:
8187
cache-target: release
88+
env:
89+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
8290

8391
- run: cargo install --path crates/cargo-codspeed --locked
8492

@@ -108,6 +116,8 @@ jobs:
108116
- uses: moonrepo/setup-rust@v1
109117
with:
110118
cache-target: release
119+
env:
120+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
111121

112122
- run: cargo install --path crates/cargo-codspeed --locked
113123

@@ -142,6 +152,8 @@ jobs:
142152
- uses: moonrepo/setup-rust@v1
143153
with:
144154
targets: ${{ matrix.target }}
155+
env:
156+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
145157

146158
- name: Install musl tools
147159
run: sudo apt-get update && sudo apt-get install -y musl-tools

0 commit comments

Comments
 (0)