aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/release.yaml45
1 files changed, 8 insertions, 37 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index f5a07c21f..4031981a8 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -41,43 +41,18 @@ jobs:
41 target: x86_64-unknown-linux-musl 41 target: x86_64-unknown-linux-musl
42 override: true 42 override: true
43 43
44 - name: Create distribution dir 44 - name: Dist
45 run: mkdir ./dist 45 if: github.event_name == 'push'
46
47 - name: Build
48 if: matrix.os == 'ubuntu-latest'
49 run: cargo build --package rust-analyzer --bin rust-analyzer --release --target x86_64-unknown-linux-musl
50 env:
51 CC: clang
52
53 - name: Build VS Code extension
54 if: matrix.os == 'ubuntu-latest' && github.event_name == 'push'
55 run: cargo xtask dist 46 run: cargo xtask dist
56 47
57 - name: Build VS Code extension 48 - name: Dist
58 if: matrix.os == 'ubuntu-latest' && github.event_name != 'push' 49 if: github.event_name != 'push'
59 run: cargo xtask dist --nightly 50 run: cargo xtask dist --nightly
60 51
61 - name: Build
62 if: matrix.os != 'ubuntu-latest'
63 run: cargo build --package rust-analyzer --bin rust-analyzer --release
64
65 - name: Copy binary
66 if: matrix.os == 'ubuntu-latest'
67 run: cp ./target/x86_64-unknown-linux-musl/release/rust-analyzer ./dist/rust-analyzer-linux && strip ./dist/rust-analyzer-linux
68
69 - name: Copy binary
70 if: matrix.os == 'macos-latest'
71 run: cp ./target/release/rust-analyzer ./dist/rust-analyzer-mac
72
73 - name: Copy binary
74 if: matrix.os == 'windows-latest'
75 run: copy ./target/release/rust-analyzer.exe ./dist/rust-analyzer-windows.exe
76
77 - name: Upload artifacts 52 - name: Upload artifacts
78 uses: actions/upload-artifact@v1 53 uses: actions/upload-artifact@v1
79 with: 54 with:
80 name: server-${{ matrix.os }} 55 name: dist-${{ matrix.os }}
81 path: ./dist 56 path: ./dist
82 57
83 make-release: 58 make-release:
@@ -101,19 +76,15 @@ jobs:
101 76
102 - uses: actions/download-artifact@v1 77 - uses: actions/download-artifact@v1
103 with: 78 with:
104 name: editor-plugins 79 name: dist-macos-latest
105 path: dist
106 - uses: actions/download-artifact@v1
107 with:
108 name: server-macos-latest
109 path: dist 80 path: dist
110 - uses: actions/download-artifact@v1 81 - uses: actions/download-artifact@v1
111 with: 82 with:
112 name: server-ubuntu-latest 83 name: dist-ubuntu-latest
113 path: dist 84 path: dist
114 - uses: actions/download-artifact@v1 85 - uses: actions/download-artifact@v1
115 with: 86 with:
116 name: server-windows-latest 87 name: dist-windows-latest
117 path: dist 88 path: dist
118 - run: ls -all ./dist 89 - run: ls -all ./dist
119 90