mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-13 05:38:46 +00:00
Use xtask dist for releases
This commit is contained in:
parent
694ca4e185
commit
6647e817e2
1 changed files with 8 additions and 37 deletions
45
.github/workflows/release.yaml
vendored
45
.github/workflows/release.yaml
vendored
|
@ -41,43 +41,18 @@ jobs:
|
||||||
target: x86_64-unknown-linux-musl
|
target: x86_64-unknown-linux-musl
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
- name: Create distribution dir
|
- name: Dist
|
||||||
run: mkdir ./dist
|
if: github.event_name == 'push'
|
||||||
|
|
||||||
- name: Build
|
|
||||||
if: matrix.os == 'ubuntu-latest'
|
|
||||||
run: cargo build --package rust-analyzer --bin rust-analyzer --release --target x86_64-unknown-linux-musl
|
|
||||||
env:
|
|
||||||
CC: clang
|
|
||||||
|
|
||||||
- name: Build VS Code extension
|
|
||||||
if: matrix.os == 'ubuntu-latest' && github.event_name == 'push'
|
|
||||||
run: cargo xtask dist
|
run: cargo xtask dist
|
||||||
|
|
||||||
- name: Build VS Code extension
|
- name: Dist
|
||||||
if: matrix.os == 'ubuntu-latest' && github.event_name != 'push'
|
if: github.event_name != 'push'
|
||||||
run: cargo xtask dist --nightly
|
run: cargo xtask dist --nightly
|
||||||
|
|
||||||
- name: Build
|
|
||||||
if: matrix.os != 'ubuntu-latest'
|
|
||||||
run: cargo build --package rust-analyzer --bin rust-analyzer --release
|
|
||||||
|
|
||||||
- name: Copy binary
|
|
||||||
if: matrix.os == 'ubuntu-latest'
|
|
||||||
run: cp ./target/x86_64-unknown-linux-musl/release/rust-analyzer ./dist/rust-analyzer-linux && strip ./dist/rust-analyzer-linux
|
|
||||||
|
|
||||||
- name: Copy binary
|
|
||||||
if: matrix.os == 'macos-latest'
|
|
||||||
run: cp ./target/release/rust-analyzer ./dist/rust-analyzer-mac
|
|
||||||
|
|
||||||
- name: Copy binary
|
|
||||||
if: matrix.os == 'windows-latest'
|
|
||||||
run: copy ./target/release/rust-analyzer.exe ./dist/rust-analyzer-windows.exe
|
|
||||||
|
|
||||||
- name: Upload artifacts
|
- name: Upload artifacts
|
||||||
uses: actions/upload-artifact@v1
|
uses: actions/upload-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: server-${{ matrix.os }}
|
name: dist-${{ matrix.os }}
|
||||||
path: ./dist
|
path: ./dist
|
||||||
|
|
||||||
make-release:
|
make-release:
|
||||||
|
@ -101,19 +76,15 @@ jobs:
|
||||||
|
|
||||||
- uses: actions/download-artifact@v1
|
- uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: editor-plugins
|
name: dist-macos-latest
|
||||||
path: dist
|
path: dist
|
||||||
- uses: actions/download-artifact@v1
|
- uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: server-macos-latest
|
name: dist-ubuntu-latest
|
||||||
path: dist
|
path: dist
|
||||||
- uses: actions/download-artifact@v1
|
- uses: actions/download-artifact@v1
|
||||||
with:
|
with:
|
||||||
name: server-ubuntu-latest
|
name: dist-windows-latest
|
||||||
path: dist
|
|
||||||
- uses: actions/download-artifact@v1
|
|
||||||
with:
|
|
||||||
name: server-windows-latest
|
|
||||||
path: dist
|
path: dist
|
||||||
- run: ls -all ./dist
|
- run: ls -all ./dist
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue