mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
chore: Set up a proper job matrix for rust-cross
This commit is contained in:
parent
55c8cdeafb
commit
a1f49124ee
24
.github/workflows/ci.yaml
vendored
24
.github/workflows/ci.yaml
vendored
@ -188,11 +188,15 @@ jobs:
|
|||||||
name: Rust Cross
|
name: Rust Cross
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
env:
|
strategy:
|
||||||
targets: "powerpc-unknown-linux-gnu x86_64-unknown-linux-musl"
|
matrix:
|
||||||
|
target: [powerpc-unknown-linux-gnu, x86_64-unknown-linux-musl, wasm32-unknown-unknown]
|
||||||
|
include:
|
||||||
# The rust-analyzer binary is not expected to compile on WASM, but the IDE
|
# The rust-analyzer binary is not expected to compile on WASM, but the IDE
|
||||||
# crate should
|
# crate should
|
||||||
targets_ide: "wasm32-unknown-unknown"
|
- target: wasm32-unknown-unknown
|
||||||
|
ide-only: true
|
||||||
|
env:
|
||||||
RUSTFLAGS: "-Dwarnings"
|
RUSTFLAGS: "-Dwarnings"
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@ -202,19 +206,15 @@ jobs:
|
|||||||
- name: Install Rust toolchain
|
- name: Install Rust toolchain
|
||||||
run: |
|
run: |
|
||||||
rustup update --no-self-update stable
|
rustup update --no-self-update stable
|
||||||
rustup target add ${{ env.targets }} ${{ env.targets_ide }}
|
rustup target add ${{ matrix.target }}
|
||||||
|
|
||||||
# - name: Cache Dependencies
|
# - name: Cache Dependencies
|
||||||
# uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
|
# uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6
|
||||||
|
|
||||||
- name: Check
|
- run: cargo check --target=${{ matrix.target }} --all-targets -p ide
|
||||||
run: |
|
if: ${{ matrix.ide-only }}
|
||||||
for target in ${{ env.targets }}; do
|
- run: cargo check --target=${{ matrix.target }} --all-targets
|
||||||
cargo check --target=$target --all-targets
|
if: ${{ !matrix.ide-only }}
|
||||||
done
|
|
||||||
for target in ${{ env.targets_ide }}; do
|
|
||||||
cargo check -p ide --target=$target --all-targets
|
|
||||||
done
|
|
||||||
|
|
||||||
typescript:
|
typescript:
|
||||||
needs: changes
|
needs: changes
|
||||||
|
Loading…
x
Reference in New Issue
Block a user