Skip to content

Commit 065852d

Browse files
committed
Auto merge of #107992 - lnicola:rust-analyzer-2023-02-13, r=lnicola
⬆️ `rust-analyzer` r? `@ghost`
2 parents a3c9eed + c4a2f06 commit 065852d

File tree

321 files changed

+11188
-9698
lines changed

Some content is hidden

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

321 files changed

+11188
-9698
lines changed

src/tools/rust-analyzer/.github/ISSUE_TEMPLATE/blank_issue.md

-10
This file was deleted.

src/tools/rust-analyzer/.github/ISSUE_TEMPLATE/bug_report.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
name: Bug report
33
about: Create a bug report for rust-analyzer.
44
title: ''
5-
labels: ''
5+
labels: 'C-bug'
66
assignees: ''
77

88
---
@@ -22,4 +22,4 @@ Otherwise please try to provide information which will help us to fix the issue
2222

2323
**rustc version**: (eg. output of `rustc -V`)
2424

25-
**relevant settings**: (eg. client settings, or environment variables like `CARGO`, `RUSTUP_HOME` or `CARGO_HOME`)
25+
**relevant settings**: (eg. client settings, or environment variables like `CARGO`, `RUSTC`, `RUSTUP_HOME` or `CARGO_HOME`)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: Feature Request
3+
about: Create a feature request for rust-analyzer.
4+
title: ''
5+
labels: 'C-feature'
6+
assignees: ''
7+
8+
---
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
---
2+
name: Support Question
3+
about: A question regarding functionality of rust-analyzer.
4+
title: ''
5+
labels: 'C-support'
6+
assignees: ''
7+
8+
---

src/tools/rust-analyzer/.github/workflows/publish.yml src/tools/rust-analyzer/.github/workflows/autopublish.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: publish
1+
name: autopublish
22
on:
33
workflow_dispatch: # We can add version input when 1.0 is released and scheduled releases are removed
44

@@ -25,7 +25,7 @@ jobs:
2525
- name: Install cargo-workspaces
2626
run: cargo install cargo-workspaces
2727

28-
- name: Release
28+
- name: Publish Crates
2929
env:
3030
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
3131
PATCH: ${{ github.run_number }}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Fuzz
2+
on:
3+
schedule:
4+
# Once a week
5+
- cron: '0 0 * * 0'
6+
push:
7+
paths:
8+
- '.github/workflows/fuzz.yml'
9+
# Allow manual trigger
10+
workflow_dispatch:
11+
12+
env:
13+
CARGO_INCREMENTAL: 0
14+
CARGO_NET_RETRY: 10
15+
CI: 1
16+
RUST_BACKTRACE: short
17+
RUSTFLAGS: "-D warnings -W unreachable-pub -W bare-trait-objects"
18+
RUSTUP_MAX_RETRIES: 10
19+
20+
jobs:
21+
rust:
22+
if: ${{ github.repository == 'rust-lang/rust-analyzer' || github.event.action == 'workflow_dispatch' }}
23+
name: Rust
24+
runs-on: ubuntu-latest
25+
env:
26+
CC: deny_c
27+
28+
steps:
29+
- name: Checkout repository
30+
uses: actions/checkout@v3
31+
with:
32+
ref: ${{ github.event.pull_request.head.sha }}
33+
fetch-depth: 1
34+
35+
- name: Install Rust toolchain
36+
run: |
37+
rustup install --profile minimal nightly
38+
39+
- name: Build fuzzers
40+
run: |
41+
cargo install cargo-fuzz
42+
cd crates/syntax
43+
cargo +nightly fuzz build
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: publish-libs
2+
on:
3+
workflow_dispatch:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- 'lib/**'
9+
10+
jobs:
11+
publish-libs:
12+
name: publish
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v3
17+
with:
18+
fetch-depth: 0
19+
20+
- name: Install Rust toolchain
21+
run: rustup update --no-self-update stable
22+
23+
- name: Install cargo-workspaces
24+
run: cargo install cargo-workspaces
25+
26+
- name: Publish Crates
27+
env:
28+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
29+
shell: bash
30+
run: |
31+
git config --global user.email "runner@gha.local"
32+
git config --global user.name "Github Action"
33+
# Remove r-a crates from the workspaces so we don't auto-publish them as well
34+
sed -i 's/ "crates\/\*"//' ./Cargo.toml
35+
cargo workspaces publish --yes --exact --from-git --no-git-commit --allow-dirty

src/tools/rust-analyzer/.github/workflows/release.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828
- os: windows-latest
2929
target: x86_64-pc-windows-msvc
3030
code-target: win32-x64
31+
- os: windows-latest
32+
target: i686-pc-windows-msvc
33+
code-target: win32-ia32
3134
- os: windows-latest
3235
target: aarch64-pc-windows-msvc
3336
code-target: win32-arm64
@@ -230,6 +233,10 @@ jobs:
230233
with:
231234
name: dist-x86_64-pc-windows-msvc
232235
path: dist
236+
- uses: actions/download-artifact@v1
237+
with:
238+
name: dist-i686-pc-windows-msvc
239+
path: dist
233240
- uses: actions/download-artifact@v1
234241
with:
235242
name: dist-aarch64-pc-windows-msvc

0 commit comments

Comments
 (0)