mirror of
https://github.com/rust-lang/rust-analyzer
synced 2025-01-12 21:28:51 +00:00
build with clang?
This commit is contained in:
parent
ab6e992c87
commit
a30129be5a
1 changed files with 12 additions and 6 deletions
18
.github/workflows/release.yaml
vendored
18
.github/workflows/release.yaml
vendored
|
@ -38,21 +38,27 @@ jobs:
|
||||||
override: true
|
override: true
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
|
if: matrix.os == 'ubuntu-latest'
|
||||||
|
uses: actions-rs/cargo@v1
|
||||||
|
env:
|
||||||
|
CC: clang
|
||||||
|
with:
|
||||||
|
command: build
|
||||||
|
args: --package ra_lsp_server --bin ra_lsp_server --release --target x86_64-unknown-linux-musl
|
||||||
|
|
||||||
|
- name: Build
|
||||||
|
if: matrix.os != 'ubuntu-latest'
|
||||||
uses: actions-rs/cargo@v1
|
uses: actions-rs/cargo@v1
|
||||||
with:
|
with:
|
||||||
command: build
|
command: build
|
||||||
args: --package ra_lsp_server --bin ra_lsp_server --target x86_64-unknown-linux-musl --release
|
args: --package ra_lsp_server --bin ra_lsp_server --release
|
||||||
|
|
||||||
- name: Strip symbols
|
|
||||||
if: matrix.os == 'ubuntu-latest'
|
|
||||||
run: strip ./target/release/ra_lsp_server
|
|
||||||
|
|
||||||
- name: Create distribution dir
|
- name: Create distribution dir
|
||||||
run: mkdir ./dist
|
run: mkdir ./dist
|
||||||
|
|
||||||
- name: Copy binary
|
- name: Copy binary
|
||||||
if: matrix.os == 'ubuntu-latest'
|
if: matrix.os == 'ubuntu-latest'
|
||||||
run: cp ./target/release/ra_lsp_server ./dist/ra_lsp_server-linux
|
run: cp ./target/x86_64-unknown-linux-musl/release/ra_lsp_server ./dist/ra_lsp_server-linux && strip ./dist/ra_lsp_server-linux
|
||||||
|
|
||||||
- name: Copy binary
|
- name: Copy binary
|
||||||
if: matrix.os == 'macos-latest'
|
if: matrix.os == 'macos-latest'
|
||||||
|
|
Loading…
Reference in a new issue