aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2020-01-13 14:03:07 +0000
committerAleksey Kladov <[email protected]>2020-01-13 14:20:09 +0000
commita30129be5ae8fd3dc698cc035339ed651b30de02 (patch)
treebb5a6ba81fe9b9fbe7fca71059e253b597952512 /.github
parentab6e992c8719ed58c66309c5274f8a13807e6afa (diff)
build with clang?
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release.yaml16
1 files changed, 11 insertions, 5 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 8e4c9adb3..395ce1ef4 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -38,21 +38,27 @@ jobs:
38 override: true 38 override: true
39 39
40 - name: Build 40 - name: Build
41 if: matrix.os == 'ubuntu-latest'
41 uses: actions-rs/cargo@v1 42 uses: actions-rs/cargo@v1
43 env:
44 CC: clang
42 with: 45 with:
43 command: build 46 command: build
44 args: --package ra_lsp_server --bin ra_lsp_server --target x86_64-unknown-linux-musl --release 47 args: --package ra_lsp_server --bin ra_lsp_server --release --target x86_64-unknown-linux-musl
45 48
46 - name: Strip symbols 49 - name: Build
47 if: matrix.os == 'ubuntu-latest' 50 if: matrix.os != 'ubuntu-latest'
48 run: strip ./target/release/ra_lsp_server 51 uses: actions-rs/cargo@v1
52 with:
53 command: build
54 args: --package ra_lsp_server --bin ra_lsp_server --release
49 55
50 - name: Create distribution dir 56 - name: Create distribution dir
51 run: mkdir ./dist 57 run: mkdir ./dist
52 58
53 - name: Copy binary 59 - name: Copy binary
54 if: matrix.os == 'ubuntu-latest' 60 if: matrix.os == 'ubuntu-latest'
55 run: cp ./target/release/ra_lsp_server ./dist/ra_lsp_server-linux 61 run: cp ./target/x86_64-unknown-linux-musl/release/ra_lsp_server ./dist/ra_lsp_server-linux && strip ./dist/ra_lsp_server-linux
56 62
57 - name: Copy binary 63 - name: Copy binary
58 if: matrix.os == 'macos-latest' 64 if: matrix.os == 'macos-latest'