From a30129be5ae8fd3dc698cc035339ed651b30de02 Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Mon, 13 Jan 2020 15:03:07 +0100 Subject: build with clang? --- .github/workflows/release.yaml | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to '.github') 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: 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 --target x86_64-unknown-linux-musl --release + args: --package ra_lsp_server --bin ra_lsp_server --release --target x86_64-unknown-linux-musl - - name: Strip symbols - if: matrix.os == 'ubuntu-latest' - run: strip ./target/release/ra_lsp_server + - name: Build + if: matrix.os != 'ubuntu-latest' + uses: actions-rs/cargo@v1 + with: + command: build + 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' -- cgit v1.2.3