Merge pull request #3457 from matklad/simple-ci

Remove needless dep
This commit is contained in:
Aleksey Kladov 2020-03-04 18:17:26 +01:00 committed by GitHub
commit ae6109a68c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 26 deletions

View file

@ -74,15 +74,10 @@ jobs:
key: ${{ runner.os }}-cargo-build-target-${{ hashFiles('**/Cargo.lock') }}
- name: Compile
uses: actions-rs/cargo@v1
with:
command: test
args: --no-run
run: cargo test --no-run
- name: Test
uses: actions-rs/cargo@v1
with:
command: test
run: cargo test
- name: Prepare cache
run: cargo xtask pre-cache

View file

@ -43,19 +43,13 @@ jobs:
- name: Build
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:
CC: clang
with:
command: build
args: --package rust-analyzer --bin rust-analyzer --release --target x86_64-unknown-linux-musl
- name: Build
if: matrix.os != 'ubuntu-latest'
uses: actions-rs/cargo@v1
with:
command: build
args: --package rust-analyzer --bin rust-analyzer --release
run: cargo build --package rust-analyzer --bin rust-analyzer --release
- name: Create distribution dir
run: mkdir ./dist

View file

@ -24,16 +24,11 @@ jobs:
components: rustfmt, rust-src
- name: Build Documentation
uses: actions-rs/cargo@v1
with:
command: doc
args: --all --no-deps
run: cargo doc --all --no-deps
- name: Deploy Docs
uses: peaceiris/actions-gh-pages@v2.6.0-rc0
env:
ACTIONS_DEPLOY_KEY: ${{ secrets.ACTIONS_DEPLOY_KEY }}
PUBLISH_BRANCH: gh-pages
PUBLISH_DIR: ./target/doc
with:
forceOrphan: true
uses: peaceiris/actions-gh-pages@364c31d33bb99327c77b3a5438a83a357a6729ad # v3.4.0
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./book
force_orphan: true