aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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'