Skip to content

Commit 8aa2eb7

Browse files
bors[bot]lnicola
andauthored
Merge #7014
7014: Set RA_TARGET at job level r=lnicola a=lnicola bors r+ Co-authored-by: Laurențiu Nicola <[email protected]>
2 parents 5e005cd + 2707dc3 commit 8aa2eb7

File tree

1 file changed

+9
-11
lines changed

1 file changed

+9
-11
lines changed

.github/workflows/release.yaml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
dist-windows:
1919
name: dist (Windows)
2020
runs-on: windows-latest
21+
env:
22+
RA_TARGET: x86_64-pc-windows-msvc
2123

2224
steps:
2325
- name: Checkout repository
@@ -39,8 +41,6 @@ jobs:
3941

4042
- name: Dist
4143
run: cargo xtask dist
42-
env:
43-
RA_TARGET: x86_64-pc-windows-msvc
4444

4545
- name: Upload artifacts
4646
uses: actions/upload-artifact@v1
@@ -51,6 +51,8 @@ jobs:
5151
dist-ubuntu:
5252
name: dist (Ubuntu 16.04)
5353
runs-on: ubuntu-16.04
54+
env:
55+
RA_TARGET: x86_64-unknown-linux-gnu
5456

5557
steps:
5658
- name: Checkout repository
@@ -71,18 +73,14 @@ jobs:
7173
- name: Dist
7274
if: github.ref == 'refs/heads/release'
7375
run: cargo xtask dist --client 0.2.$GITHUB_RUN_NUMBER
74-
env:
75-
RA_TARGET: x86_64-unknown-linux-gnu
7676

7777
- name: Dist
7878
if: github.ref != 'refs/heads/release'
7979
run: cargo xtask dist --nightly --client 0.3.$GITHUB_RUN_NUMBER-nightly
80-
env:
81-
RA_TARGET: x86_64-unknown-linux-gnu
8280

8381
- name: Nightly analysis-stats check
8482
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 .
8684

8785
- name: Upload artifacts
8886
uses: actions/upload-artifact@v1
@@ -93,6 +91,8 @@ jobs:
9391
dist-macos-latest:
9492
name: dist (MacOS latest)
9593
runs-on: macos-latest
94+
env:
95+
RA_TARGET: x86_64-apple-darwin
9696

9797
steps:
9898
- name: Checkout repository
@@ -107,8 +107,6 @@ jobs:
107107

108108
- name: Dist
109109
run: cargo xtask dist
110-
env:
111-
RA_TARGET: x86_64-apple-darwin
112110

113111
- name: Upload artifacts
114112
uses: actions/upload-artifact@v1
@@ -119,6 +117,8 @@ jobs:
119117
dist-macos-11:
120118
name: dist (MacOS 11.0)
121119
runs-on: macos-11.0
120+
env:
121+
RA_TARGET: aarch64-apple-darwin
122122

123123
steps:
124124
- name: Checkout repository
@@ -134,8 +134,6 @@ jobs:
134134

135135
- name: Dist
136136
run: cargo xtask dist
137-
env:
138-
RA_TARGET: aarch64-apple-darwin
139137

140138
- name: Upload artifacts
141139
uses: actions/upload-artifact@v1

0 commit comments

Comments
 (0)