aboutsummaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/release.yaml44
1 files changed, 41 insertions, 3 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index ece1fd364..94b6aa7c4 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -94,6 +94,7 @@ jobs:
94 toolchain: stable 94 toolchain: stable
95 profile: minimal 95 profile: minimal
96 override: true 96 override: true
97 components: rust-src
97 98
98 - name: Install Nodejs 99 - name: Install Nodejs
99 uses: actions/setup-node@v1 100 uses: actions/setup-node@v1
@@ -108,16 +109,49 @@ jobs:
108 if: github.ref != 'refs/heads/release' 109 if: github.ref != 'refs/heads/release'
109 run: cargo xtask dist --nightly --client 0.3.$GITHUB_RUN_NUMBER-nightly 110 run: cargo xtask dist --nightly --client 0.3.$GITHUB_RUN_NUMBER-nightly
110 111
111 - name: Nightly analysis-stats check 112 - name: Run analysis-stats on rust-analyzer
112 if: github.ref != 'refs/heads/release'
113 run: target/${{ env.RA_TARGET }}/release/rust-analyzer analysis-stats . 113 run: target/${{ env.RA_TARGET }}/release/rust-analyzer analysis-stats .
114 114
115 - name: Run analysis-stats on rust std library
116 run: target/${{ env.RA_TARGET }}/release/rust-analyzer analysis-stats --with-deps $(rustc --print sysroot)/lib/rustlib/src/rust/library/std
117
115 - name: Upload artifacts 118 - name: Upload artifacts
116 uses: actions/upload-artifact@v1 119 uses: actions/upload-artifact@v1
117 with: 120 with:
118 name: dist-x86_64-unknown-linux-gnu 121 name: dist-x86_64-unknown-linux-gnu
119 path: ./dist 122 path: ./dist
120 123
124 dist-aarch64-unknown-linux-gnu:
125 name: dist (aarch64-unknown-linux-gnu)
126 runs-on: ubuntu-16.04
127 env:
128 RA_TARGET: aarch64-unknown-linux-gnu
129 CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER: aarch64-linux-gnu-gcc
130
131 steps:
132 - name: Checkout repository
133 uses: actions/checkout@v2
134
135 - name: Install Rust toolchain
136 uses: actions-rs/toolchain@v1
137 with:
138 toolchain: stable
139 target: aarch64-unknown-linux-gnu
140 profile: minimal
141 override: true
142
143 - name: Install target toolchain
144 run: sudo apt-get install gcc-aarch64-linux-gnu
145
146 - name: Dist
147 run: cargo xtask dist
148
149 - name: Upload artifacts
150 uses: actions/upload-artifact@v1
151 with:
152 name: dist-aarch64-unknown-linux-gnu
153 path: ./dist
154
121 dist-x86_64-apple-darwin: 155 dist-x86_64-apple-darwin:
122 name: dist (x86_64-apple-darwin) 156 name: dist (x86_64-apple-darwin)
123 runs-on: macos-latest 157 runs-on: macos-latest
@@ -174,7 +208,7 @@ jobs:
174 publish: 208 publish:
175 name: publish 209 name: publish
176 runs-on: ubuntu-16.04 210 runs-on: ubuntu-16.04
177 needs: ['dist-x86_64-pc-windows-msvc', 'dist-aarch64-pc-windows-msvc', 'dist-x86_64-unknown-linux-gnu', 'dist-x86_64-apple-darwin', 'dist-aarch64-apple-darwin'] 211 needs: ['dist-x86_64-pc-windows-msvc', 'dist-aarch64-pc-windows-msvc', 'dist-x86_64-unknown-linux-gnu', 'dist-aarch64-unknown-linux-gnu', 'dist-x86_64-apple-darwin', 'dist-aarch64-apple-darwin']
178 steps: 212 steps:
179 - name: Install Nodejs 213 - name: Install Nodejs
180 uses: actions/setup-node@v1 214 uses: actions/setup-node@v1
@@ -207,6 +241,10 @@ jobs:
207 path: dist 241 path: dist
208 - uses: actions/download-artifact@v1 242 - uses: actions/download-artifact@v1
209 with: 243 with:
244 name: dist-aarch64-unknown-linux-gnu
245 path: dist
246 - uses: actions/download-artifact@v1
247 with:
210 name: dist-x86_64-pc-windows-msvc 248 name: dist-x86_64-pc-windows-msvc
211 path: dist 249 path: dist
212 - uses: actions/download-artifact@v1 250 - uses: actions/download-artifact@v1