Skip to content

Commit f05d7b4

Browse files
committed
Merge remote-tracking branch 'upstream/master' into 503-hover-doc-links
Hasn't fixed tests yet.
2 parents 73ff610 + 6b7cb8b commit f05d7b4

File tree

655 files changed

+33815
-35986
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

655 files changed

+33815
-35986
lines changed

.gitattributes

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
* text=auto eol=lf
22
crates/ra_syntax/test_data/** -text eof=LF
3+
# Older git versions try to fix line endings on images, this prevents it.
4+
*.png binary
5+
*.jpg binary
6+
*.ico binary

.github/workflows/ci.yaml

Lines changed: 52 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -16,25 +16,25 @@ env:
1616
RUSTUP_MAX_RETRIES: 10
1717

1818
jobs:
19-
rust-audit:
20-
name: Audit Rust vulnerabilities
21-
runs-on: ubuntu-latest
22-
steps:
23-
- name: Checkout repository
24-
uses: actions/checkout@v2
19+
# rust-audit:
20+
# name: Audit Rust vulnerabilities
21+
# runs-on: ubuntu-latest
22+
# steps:
23+
# - name: Checkout repository
24+
# uses: actions/checkout@v2
2525

26-
- uses: actions-rs/[email protected]
27-
with:
28-
crate: cargo-audit
29-
use-tool-cache: true
26+
# - uses: actions-rs/[email protected]
27+
# with:
28+
# crate: cargo-audit
29+
# use-tool-cache: true
3030

31-
- run: cargo audit
31+
# - run: cargo audit
3232

3333
rust:
3434
name: Rust
3535
runs-on: ${{ matrix.os }}
3636
env:
37-
CC: deny_c
37+
CC: deny_c
3838

3939
strategy:
4040
fail-fast: false
@@ -61,29 +61,22 @@ jobs:
6161
override: true
6262
components: rustfmt, rust-src
6363

64-
- if: matrix.os == 'ubuntu-latest'
65-
run: sudo chown -R $(whoami):$(id -ng) ~/.cargo/
66-
67-
- name: Cache cargo registry
68-
uses: actions/cache@v1
64+
- name: Cache cargo directories
65+
uses: actions/cache@v2
6966
with:
70-
path: ~/.cargo/registry
71-
key: ${{ runner.os }}-cargo-registry-${{ hashFiles('**/Cargo.lock') }}
72-
73-
- name: Cache cargo index
74-
uses: actions/cache@v1
75-
with:
76-
path: ~/.cargo/git
77-
key: ${{ runner.os }}-cargo-index-${{ hashFiles('**/Cargo.lock') }}
67+
path: |
68+
~/.cargo/registry
69+
~/.cargo/git
70+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
7871

7972
- name: Cache cargo target dir
80-
uses: actions/cache@v1
73+
uses: actions/cache@v2
8174
with:
8275
path: target
8376
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
8477

8578
- name: Compile
86-
run: cargo test --no-run
79+
run: cargo test --no-run --locked
8780

8881
- name: Test
8982
run: cargo test
@@ -95,6 +88,34 @@ jobs:
9588
if: matrix.os == 'windows-latest'
9689
run: Remove-Item ./target/debug/xtask.exe, ./target/debug/deps/xtask.exe
9790

91+
# Weird target to catch non-portable code
92+
rust-power:
93+
name: Rust Power
94+
runs-on: ubuntu-latest
95+
96+
steps:
97+
- name: Checkout repository
98+
uses: actions/checkout@v2
99+
100+
- name: Install Rust toolchain
101+
uses: actions-rs/toolchain@v1
102+
with:
103+
toolchain: stable
104+
profile: minimal
105+
override: true
106+
target: 'powerpc-unknown-linux-gnu'
107+
108+
- name: Cache cargo directories
109+
uses: actions/cache@v2
110+
with:
111+
path: |
112+
~/.cargo/registry
113+
~/.cargo/git
114+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
115+
116+
- name: Check
117+
run: cargo check --target=powerpc-unknown-linux-gnu --all-targets
118+
98119
typescript:
99120
name: TypeScript
100121
strategy:
@@ -103,7 +124,7 @@ jobs:
103124
os: [ubuntu-latest, windows-latest, macos-latest]
104125

105126
runs-on: ${{ matrix.os }}
106-
127+
107128
steps:
108129
- name: Checkout repository
109130
uses: actions/checkout@v2
@@ -116,9 +137,9 @@ jobs:
116137
- run: npm ci
117138
working-directory: ./editors/code
118139

119-
- run: npm audit || { sleep 10 && npm audit; } || { sleep 30 && npm audit; }
120-
if: runner.os == 'Linux'
121-
working-directory: ./editors/code
140+
# - run: npm audit || { sleep 10 && npm audit; } || { sleep 30 && npm audit; }
141+
# if: runner.os == 'Linux'
142+
# working-directory: ./editors/code
122143

123144
- run: npm run lint
124145
working-directory: ./editors/code

.github/workflows/metrics.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: metrics
2+
on:
3+
push:
4+
branches:
5+
- master
6+
7+
env:
8+
CARGO_INCREMENTAL: 0
9+
CARGO_NET_RETRY: 10
10+
RUSTFLAGS: -D warnings
11+
RUSTUP_MAX_RETRIES: 10
12+
13+
jobs:
14+
metrics:
15+
runs-on: ubuntu-latest
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v2
20+
21+
- name: Install Rust toolchain
22+
uses: actions-rs/toolchain@v1
23+
with:
24+
toolchain: stable
25+
profile: minimal
26+
override: true
27+
components: rust-src
28+
29+
- name: Collect metrics
30+
run: cargo xtask metrics
31+
env:
32+
METRICS_TOKEN: ${{ secrets.METRICS_TOKEN }}

0 commit comments

Comments
 (0)