mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +00:00
commit
ae6109a68c
3 changed files with 10 additions and 26 deletions
9
.github/workflows/ci.yaml
vendored
9
.github/workflows/ci.yaml
vendored
|
@ -74,15 +74,10 @@ jobs:
|
||||||
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
|
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
|
||||||
|
|
||||||
- name: Compile
|
- name: Compile
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo test --no-run
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
args: --no-run
|
|
||||||
|
|
||||||
- name: Test
|
- name: Test
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo test
|
||||||
with:
|
|
||||||
command: test
|
|
||||||
|
|
||||||
- name: Prepare cache
|
- name: Prepare cache
|
||||||
run: cargo xtask pre-cache
|
run: cargo xtask pre-cache
|
||||||
|
|
10
.github/workflows/release.yaml
vendored
10
.github/workflows/release.yaml
vendored
|
@ -43,19 +43,13 @@ jobs:
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo build --package rust-analyzer --bin rust-analyzer --release --target x86_64-unknown-linux-musl
|
||||||
env:
|
env:
|
||||||
CC: clang
|
CC: clang
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: --package rust-analyzer --bin rust-analyzer --release --target x86_64-unknown-linux-musl
|
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
if: matrix.os != 'ubuntu-latest'
|
if: matrix.os != 'ubuntu-latest'
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo build --package rust-analyzer --bin rust-analyzer --release
|
||||||
with:
|
|
||||||
command: build
|
|
||||||
args: --package rust-analyzer --bin rust-analyzer --release
|
|
||||||
|
|
||||||
- name: Create distribution dir
|
- name: Create distribution dir
|
||||||
run: mkdir ./dist
|
run: mkdir ./dist
|
||||||
|
|
17
.github/workflows/rustdoc.yaml
vendored
17
.github/workflows/rustdoc.yaml
vendored
|
@ -24,16 +24,11 @@ jobs:
|
||||||
components: rustfmt, rust-src
|
components: rustfmt, rust-src
|
||||||
|
|
||||||
- name: Build Documentation
|
- name: Build Documentation
|
||||||
uses: actions-rs/cargo@v1
|
run: cargo doc --all --no-deps
|
||||||
with:
|
|
||||||
command: doc
|
|
||||||
args: --all --no-deps
|
|
||||||
|
|
||||||
- name: Deploy Docs
|
- name: Deploy Docs
|
||||||
uses: peaceiris/actions-gh-pages@v2.6.0-rc0
|
uses: peaceiris/actions-gh-pages@364c31d33bb99327c77b3a5438a83a357a6729ad # v3.4.0
|
||||||
env:
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
|
publish_branch: gh-pages
|
||||||
PUBLISH_BRANCH: gh-pages
|
publish_dir: ./book
|
||||||
PUBLISH_DIR: ./target/doc
|
force_orphan: true
|
||||||
with:
|
|
||||||
forceOrphan: true
|
|
||||||
|
|
Loading…
Reference in a new issue