mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-10 07:04:22 +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
|
||||
|
||||
- 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
|
||||
with:
|
||||
command: build
|
||||
args: --package ra_lsp_server --bin ra_lsp_server --target x86_64-unknown-linux-musl --release
|
||||
|
||||
- name: Strip symbols
|
||||
if: matrix.os == 'ubuntu-latest'
|
||||
run: strip ./target/release/ra_lsp_server
|
||||
args: --package ra_lsp_server --bin ra_lsp_server --release
|
||||
|
||||
- name: Create distribution dir
|
||||
run: mkdir ./dist
|
||||
|
||||
- name: Copy binary
|
||||
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
|
||||
if: matrix.os == 'macos-latest'
|
||||
|
|
Loading…
Reference in a new issue