forked from rust-lang/rust
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
321 changed files
with
11,188 additions
and
9,698 deletions.
There are no files selected for viewing
10 changes: 0 additions & 10 deletions
10
src/tools/rust-analyzer/.github/ISSUE_TEMPLATE/blank_issue.md
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 8 additions & 0 deletions
8
src/tools/rust-analyzer/.github/ISSUE_TEMPLATE/feature_request.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
name: Feature Request | ||
about: Create a feature request for rust-analyzer. | ||
title: '' | ||
labels: 'C-feature' | ||
assignees: '' | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
--- | ||
name: Support Question | ||
about: A question regarding functionality of rust-analyzer. | ||
title: '' | ||
labels: 'C-support' | ||
assignees: '' | ||
|
||
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Fuzz | ||
on: | ||
schedule: | ||
# Once a week | ||
- cron: '0 0 * * 0' | ||
push: | ||
paths: | ||
- '.github/workflows/fuzz.yml' | ||
# Allow manual trigger | ||
workflow_dispatch: | ||
|
||
env: | ||
CARGO_INCREMENTAL: 0 | ||
CARGO_NET_RETRY: 10 | ||
CI: 1 | ||
RUST_BACKTRACE: short | ||
RUSTFLAGS: "-D warnings -W unreachable-pub -W bare-trait-objects" | ||
RUSTUP_MAX_RETRIES: 10 | ||
|
||
jobs: | ||
rust: | ||
if: ${{ github.repository == 'rust-lang/rust-analyzer' || github.event.action == 'workflow_dispatch' }} | ||
name: Rust | ||
runs-on: ubuntu-latest | ||
env: | ||
CC: deny_c | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 1 | ||
|
||
- name: Install Rust toolchain | ||
run: | | ||
rustup install --profile minimal nightly | ||
- name: Build fuzzers | ||
run: | | ||
cargo install cargo-fuzz | ||
cd crates/syntax | ||
cargo +nightly fuzz build |
35 changes: 35 additions & 0 deletions
35
src/tools/rust-analyzer/.github/workflows/publish-libs.yaml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: publish-libs | ||
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- 'lib/**' | ||
|
||
jobs: | ||
publish-libs: | ||
name: publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Rust toolchain | ||
run: rustup update --no-self-update stable | ||
|
||
- name: Install cargo-workspaces | ||
run: cargo install cargo-workspaces | ||
|
||
- name: Publish Crates | ||
env: | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | ||
shell: bash | ||
run: | | ||
git config --global user.email "runner@gha.local" | ||
git config --global user.name "Github Action" | ||
# Remove r-a crates from the workspaces so we don't auto-publish them as well | ||
sed -i 's/ "crates\/\*"//' ./Cargo.toml | ||
cargo workspaces publish --yes --exact --from-git --no-git-commit --allow-dirty |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.