aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/release.yaml
diff options
context:
space:
mode:
authorLaurenČ›iu Nicola <[email protected]>2020-12-23 08:13:19 +0000
committerLaurenČ›iu Nicola <[email protected]>2020-12-23 08:13:19 +0000
commit2707dc384d8a25ed35c33b0185201ad48b086cdf (patch)
treefea8daa0529da7a5001c929c3c01d25769095001 /.github/workflows/release.yaml
parent58b6763f206b80a3000eb3c7642181fa5fb98229 (diff)
Set RA_TARGET at job level
Diffstat (limited to '.github/workflows/release.yaml')
-rw-r--r--.github/workflows/release.yaml20
1 files changed, 9 insertions, 11 deletions
diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml
index 75483b477..7b9fbe6b8 100644
--- a/.github/workflows/release.yaml
+++ b/.github/workflows/release.yaml
@@ -18,6 +18,8 @@ jobs:
18 dist-windows: 18 dist-windows:
19 name: dist (Windows) 19 name: dist (Windows)
20 runs-on: windows-latest 20 runs-on: windows-latest
21 env:
22 RA_TARGET: x86_64-pc-windows-msvc
21 23
22 steps: 24 steps:
23 - name: Checkout repository 25 - name: Checkout repository
@@ -39,8 +41,6 @@ jobs:
39 41
40 - name: Dist 42 - name: Dist
41 run: cargo xtask dist 43 run: cargo xtask dist
42 env:
43 RA_TARGET: x86_64-pc-windows-msvc
44 44
45 - name: Upload artifacts 45 - name: Upload artifacts
46 uses: actions/upload-artifact@v1 46 uses: actions/upload-artifact@v1
@@ -51,6 +51,8 @@ jobs:
51 dist-ubuntu: 51 dist-ubuntu:
52 name: dist (Ubuntu 16.04) 52 name: dist (Ubuntu 16.04)
53 runs-on: ubuntu-16.04 53 runs-on: ubuntu-16.04
54 env:
55 RA_TARGET: x86_64-unknown-linux-gnu
54 56
55 steps: 57 steps:
56 - name: Checkout repository 58 - name: Checkout repository
@@ -71,18 +73,14 @@ jobs:
71 - name: Dist 73 - name: Dist
72 if: github.ref == 'refs/heads/release' 74 if: github.ref == 'refs/heads/release'
73 run: cargo xtask dist --client 0.2.$GITHUB_RUN_NUMBER 75 run: cargo xtask dist --client 0.2.$GITHUB_RUN_NUMBER
74 env:
75 RA_TARGET: x86_64-unknown-linux-gnu
76 76
77 - name: Dist 77 - name: Dist
78 if: github.ref != 'refs/heads/release' 78 if: github.ref != 'refs/heads/release'
79 run: cargo xtask dist --nightly --client 0.3.$GITHUB_RUN_NUMBER-nightly 79 run: cargo xtask dist --nightly --client 0.3.$GITHUB_RUN_NUMBER-nightly
80 env:
81 RA_TARGET: x86_64-unknown-linux-gnu
82 80
83 - name: Nightly analysis-stats check 81 - name: Nightly analysis-stats check
84 if: github.ref != 'refs/heads/release' 82 if: github.ref != 'refs/heads/release'
85 run: target/x86_64-unknown-linux-gnu/release/rust-analyzer analysis-stats . 83 run: target/${{ env.RA_TARGET }}/release/rust-analyzer analysis-stats .
86 84
87 - name: Upload artifacts 85 - name: Upload artifacts
88 uses: actions/upload-artifact@v1 86 uses: actions/upload-artifact@v1
@@ -93,6 +91,8 @@ jobs:
93 dist-macos-latest: 91 dist-macos-latest:
94 name: dist (MacOS latest) 92 name: dist (MacOS latest)
95 runs-on: macos-latest 93 runs-on: macos-latest
94 env:
95 RA_TARGET: x86_64-apple-darwin
96 96
97 steps: 97 steps:
98 - name: Checkout repository 98 - name: Checkout repository
@@ -107,8 +107,6 @@ jobs:
107 107
108 - name: Dist 108 - name: Dist
109 run: cargo xtask dist 109 run: cargo xtask dist
110 env:
111 RA_TARGET: x86_64-apple-darwin
112 110
113 - name: Upload artifacts 111 - name: Upload artifacts
114 uses: actions/upload-artifact@v1 112 uses: actions/upload-artifact@v1
@@ -119,6 +117,8 @@ jobs:
119 dist-macos-11: 117 dist-macos-11:
120 name: dist (MacOS 11.0) 118 name: dist (MacOS 11.0)
121 runs-on: macos-11.0 119 runs-on: macos-11.0
120 env:
121 RA_TARGET: aarch64-apple-darwin
122 122
123 steps: 123 steps:
124 - name: Checkout repository 124 - name: Checkout repository
@@ -134,8 +134,6 @@ jobs:
134 134
135 - name: Dist 135 - name: Dist
136 run: cargo xtask dist 136 run: cargo xtask dist
137 env:
138 RA_TARGET: aarch64-apple-darwin
139 137
140 - name: Upload artifacts 138 - name: Upload artifacts
141 uses: actions/upload-artifact@v1 139 uses: actions/upload-artifact@v1