Skip to content

Commit

Permalink
chore(ci): add gh token for setup-rust (#3902)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jayllyz committed Sep 15, 2024
1 parent ed79e0e commit 63bec3e
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/bench_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ jobs:
channel: stable
cache-target: release
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install hyperfine
run: cargo install hyperfine
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/benchmark.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ jobs:
cache-target: release
bins: cargo-codspeed
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Compile
run: cargo codspeed build --features codspeed -p xtask_bench
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@ jobs:
components: rustfmt
bins: taplo-cli
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run rustfmt
run: |
cargo fmt --all --verbose -- --check
Expand All @@ -51,6 +53,8 @@ jobs:
with:
components: clippy
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run cargo check
run: cargo check --workspace --all-targets --release
- name: Run clippy
Expand All @@ -69,6 +73,8 @@ jobs:
with:
channel: nightly
cache: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Install udeps
run: cargo install cargo-udeps --locked
- name: Run udeps
Expand All @@ -92,6 +98,8 @@ jobs:
uses: moonrepo/setup-rust@e013866c4215f77c925f42f60257dec7dd18836e # v1.2.1
with:
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests on ${{ matrix.os }}
run: cargo test --workspace

Expand All @@ -118,6 +126,8 @@ jobs:
with:
cache-target: release
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Compile
run: cargo build --release --locked -p xtask_coverage
- name: Run Test262 suite
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/parser_conformance.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ jobs:
with:
cache-target: release
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Compile
run: cargo build --release --locked -p xtask_coverage
Expand Down
12 changes: 12 additions & 0 deletions .github/workflows/pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ jobs:
components: rustfmt
bins: taplo-cli
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run format
run: |
cargo fmt --all --check
Expand All @@ -56,6 +58,8 @@ jobs:
with:
components: clippy
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run clippy
run: |
cargo lint
Expand Down Expand Up @@ -93,6 +97,8 @@ jobs:
uses: moonrepo/setup-rust@e013866c4215f77c925f42f60257dec7dd18836e # v1.2.1
with:
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run tests
run: cargo test --workspace

Expand All @@ -109,6 +115,8 @@ jobs:
with:
cache-target: release
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Build main binary
run: cargo build -p biome_cli --release
- name: Install Node.js
Expand Down Expand Up @@ -152,6 +160,8 @@ jobs:
uses: moonrepo/setup-rust@e013866c4215f77c925f42f60257dec7dd18836e # v1.2.1
with:
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run doc command
run: cargo documentation

Expand All @@ -167,6 +177,8 @@ jobs:
uses: moonrepo/setup-rust@e013866c4215f77c925f42f60257dec7dd18836e # v1.2.1
with:
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Run the grammar codegen
run: cargo codegen grammar
- name: Run the analyzer codegen
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/release_knope.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ on:
types: [ closed ]
branches: [ main ]


jobs:
retrieve-version:
if: github.head_ref == 'release/automated-ci' && github.event.pull_request.merged == true
Expand Down Expand Up @@ -81,6 +82,8 @@ jobs:
channel: stable
cache-target: release
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Install arm64 toolchain
if: matrix.code-target == 'linux-arm64' || matrix.code-target == 'linux-arm64-musl'
Expand Down Expand Up @@ -245,6 +248,8 @@ jobs:
channel: stable
cache-target: release
cache-base: main
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: katyo/publish-crates@v2
with:
registry-token: ${{ secrets.CARGO_TOKEN }}

0 comments on commit 63bec3e

Please sign in to comment.