mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Merge pull request #19493 from Veykril/push-tlwonkmlonqv
chore: Disable rust-cache in CI
This commit is contained in:
commit
df0174e988
56
.github/workflows/ci.yaml
vendored
56
.github/workflows/ci.yaml
vendored
@ -57,9 +57,6 @@ jobs:
|
|||||||
|
|
||||||
# We don't cache this job, as it will be invalidated every day due to nightly usage
|
# We don't cache this job, as it will be invalidated every day due to nightly usage
|
||||||
|
|
||||||
- name: Bump opt-level
|
|
||||||
run: sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
run: cargo test --features sysroot-abi -p proc-macro-srv -p proc-macro-srv-cli -p proc-macro-api -- --quiet
|
run: cargo test --features sysroot-abi -p proc-macro-srv -p proc-macro-srv-cli -p proc-macro-api -- --quiet
|
||||||
|
|
||||||
@ -97,32 +94,23 @@ jobs:
|
|||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: echo "::add-matcher::.github/rust.json"
|
run: echo "::add-matcher::.github/rust.json"
|
||||||
|
|
||||||
- name: Bump opt-level
|
# - name: Cache Dependencies
|
||||||
if: matrix.os == 'ubuntu-latest'
|
# uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
|
||||||
run: sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml
|
# with:
|
||||||
|
# workspaces: |
|
||||||
- name: Cache Dependencies
|
# . -> target
|
||||||
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
|
# ./crates/proc-macro-srv/proc-macro-test/imp -> target
|
||||||
with:
|
|
||||||
workspaces: |
|
|
||||||
. -> target
|
|
||||||
./crates/proc-macro-srv/proc-macro-test/imp -> target
|
|
||||||
|
|
||||||
- uses: taiki-e/install-action@nextest
|
- uses: taiki-e/install-action@nextest
|
||||||
|
|
||||||
- name: Codegen checks (rust-analyzer)
|
- name: Codegen checks (rust-analyzer)
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: cargo codegen --check
|
run: cargo codegen --check
|
||||||
|
|
||||||
- name: Compile (tests)
|
- name: Compile (tests)
|
||||||
run: cargo test --no-run
|
run: cargo test --no-run
|
||||||
|
|
||||||
# It's faster to `test` before `build` ¯\_(ツ)_/¯
|
|
||||||
- name: Compile (rust-analyzer)
|
|
||||||
if: matrix.os == 'ubuntu-latest'
|
|
||||||
run: cargo build --quiet
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
if: matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest' || github.event_name == 'push'
|
|
||||||
run: cargo nextest run --no-fail-fast --hide-progress-bar --status-level fail
|
run: cargo nextest run --no-fail-fast --hide-progress-bar --status-level fail
|
||||||
|
|
||||||
- name: clippy
|
- name: clippy
|
||||||
@ -131,8 +119,9 @@ jobs:
|
|||||||
|
|
||||||
analysis-stats:
|
analysis-stats:
|
||||||
if: github.repository == 'rust-lang/rust-analyzer'
|
if: github.repository == 'rust-lang/rust-analyzer'
|
||||||
name: miri
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
env:
|
||||||
|
RUSTC_BOOTSTRAP: 1
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
@ -144,20 +133,22 @@ jobs:
|
|||||||
rustup default stable
|
rustup default stable
|
||||||
rustup component add rustfmt
|
rustup component add rustfmt
|
||||||
|
|
||||||
- name: Cache Dependencies
|
# - name: Cache Dependencies
|
||||||
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
|
# uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
|
||||||
|
|
||||||
|
- name: Bump opt-level
|
||||||
|
run: sed -i '/\[profile.dev]/a opt-level=1' Cargo.toml
|
||||||
|
|
||||||
|
- run: cargo build -p rust-analyzer
|
||||||
|
|
||||||
- name: ./rust-analyzer
|
- name: ./rust-analyzer
|
||||||
run: cargo run -p rust-analyzer -- analysis-stats . -q
|
run: ./target/debug/rust-analyzer analysis-stats . -q
|
||||||
|
|
||||||
- name: sysroot/lib/rustlib/src/rust/library/
|
- name: sysroot/lib/rustlib/src/rust/library/
|
||||||
env:
|
run: ./target/debug/rust-analyzer analysis-stats --with-deps --no-sysroot --no-test $(rustc --print sysroot)/lib/rustlib/src/rust/library/ -q
|
||||||
RUSTC_BOOTSTRAP: 1
|
|
||||||
run: cargo run -p rust-analyzer -- analysis-stats --with-deps --no-sysroot --no-test $(rustc --print sysroot)/lib/rustlib/src/rust/library/ -q
|
|
||||||
|
|
||||||
rustfmt:
|
rustfmt:
|
||||||
if: github.repository == 'rust-lang/rust-analyzer'
|
if: github.repository == 'rust-lang/rust-analyzer'
|
||||||
name: miri
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -174,7 +165,6 @@ jobs:
|
|||||||
|
|
||||||
miri:
|
miri:
|
||||||
if: github.repository == 'rust-lang/rust-analyzer'
|
if: github.repository == 'rust-lang/rust-analyzer'
|
||||||
name: miri
|
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -187,8 +177,8 @@ jobs:
|
|||||||
rustup default nightly
|
rustup default nightly
|
||||||
rustup component add miri
|
rustup component add miri
|
||||||
|
|
||||||
- name: Cache Dependencies
|
# - name: Cache Dependencies
|
||||||
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
|
# uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
|
||||||
|
|
||||||
- run: cargo miri test -p intern
|
- run: cargo miri test -p intern
|
||||||
|
|
||||||
@ -214,8 +204,8 @@ jobs:
|
|||||||
rustup update --no-self-update stable
|
rustup update --no-self-update stable
|
||||||
rustup target add ${{ env.targets }} ${{ env.targets_ide }}
|
rustup target add ${{ env.targets }} ${{ env.targets_ide }}
|
||||||
|
|
||||||
- name: Cache Dependencies
|
# - name: Cache Dependencies
|
||||||
uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
|
# uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
|
||||||
|
|
||||||
- name: Check
|
- name: Check
|
||||||
run: |
|
run: |
|
||||||
@ -306,7 +296,7 @@ jobs:
|
|||||||
run: typos
|
run: typos
|
||||||
|
|
||||||
conclusion:
|
conclusion:
|
||||||
needs: [rust, rust-cross, typescript, typo-check, proc-macro-srv, miri]
|
needs: [rust, rust-cross, typescript, typo-check, proc-macro-srv, miri, rustfmt, analysis-stats]
|
||||||
# We need to ensure this job does *not* get skipped if its dependencies fail,
|
# We need to ensure this job does *not* get skipped if its dependencies fail,
|
||||||
# because a skipped job is considered a success by GitHub. So we have to
|
# because a skipped job is considered a success by GitHub. So we have to
|
||||||
# overwrite `if:`. We use `!cancelled()` to ensure the job does still not get run
|
# overwrite `if:`. We use `!cancelled()` to ensure the job does still not get run
|
||||||
|
Loading…
x
Reference in New Issue
Block a user