15
15
RUSTUP_MAX_RETRIES : 10
16
16
17
17
jobs :
18
- dist :
19
- name : dist
20
- runs-on : ${{ matrix.os }}
21
- strategy :
22
- matrix :
23
- os : [ubuntu-16.04, windows-latest, macos-latest]
18
+ dist-windows :
19
+ name : dist (Windows)
20
+ runs-on : windows-latest
24
21
25
22
steps :
26
23
- name : Checkout repository
30
27
# which takes a long time. The fastest way to do this is to rename the
31
28
# existing folder, as deleting it takes about as much time as not doing
32
29
# anything and just updating rust-docs.
33
- - name : Rename existing rust toolchain (Windows)
34
- if : matrix.os == 'windows-latest'
30
+ - name : Rename existing rust toolchain
35
31
run : Rename-Item C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc C:\Users\runneradmin\.rustup\toolchains\stable-x86_64-pc-windows-msvc.old
36
32
37
33
- name : Install Rust toolchain
@@ -41,38 +37,108 @@ jobs:
41
37
profile : minimal
42
38
override : true
43
39
40
+ - name : Dist
41
+ run : cargo xtask dist
42
+
43
+ - name : Upload artifacts
44
+ uses : actions/upload-artifact@v1
45
+ with :
46
+ name : dist-windows-latest
47
+ path : ./dist
48
+
49
+ dist-ubuntu-16.04 :
50
+ name : dist (Ubuntu 16.04)
51
+ runs-on : ubuntu-16.04
52
+
53
+ steps :
54
+ - name : Checkout repository
55
+ uses : actions/checkout@v2
56
+
57
+ - name : Install Rust toolchain
58
+ uses : actions-rs/toolchain@v1
59
+ with :
60
+ toolchain : stable
61
+ profile : minimal
62
+ override : true
63
+
44
64
- name : Install Nodejs
45
- if : matrix.os == 'ubuntu-16.04'
46
65
uses : actions/setup-node@v1
47
66
with :
48
67
node-version : 12.x
49
68
50
69
- name : Dist
51
- if : matrix.os == 'ubuntu-16.04' && github.ref == 'refs/heads/release'
70
+ if : github.ref == 'refs/heads/release'
52
71
run : cargo xtask dist --client 0.2.$GITHUB_RUN_NUMBER
53
72
54
73
- name : Dist
55
- if : matrix.os == 'ubuntu-16.04' && github.ref != 'refs/heads/release'
74
+ if : github.ref != 'refs/heads/release'
56
75
run : cargo xtask dist --nightly --client 0.3.$GITHUB_RUN_NUMBER-nightly
57
76
77
+ - name : Nightly analysis-stats check
78
+ if : github.ref != 'refs/heads/release'
79
+ run : ./dist/rust-analyzer-linux analysis-stats .
80
+
81
+ - name : Upload artifacts
82
+ uses : actions/upload-artifact@v1
83
+ with :
84
+ name : dist-ubuntu-16.04
85
+ path : ./dist
86
+
87
+ dist-macos-latest :
88
+ name : dist (MacOS latest)
89
+ runs-on : macos-latest
90
+
91
+ steps :
92
+ - name : Checkout repository
93
+ uses : actions/checkout@v2
94
+
95
+ - name : Install Rust toolchain
96
+ uses : actions-rs/toolchain@v1
97
+ with :
98
+ toolchain : stable
99
+ profile : minimal
100
+ override : true
101
+
58
102
- name : Dist
59
- if : matrix.os != 'ubuntu-16.04'
60
103
run : cargo xtask dist
61
104
62
- - name : Nightly analysis-stats check
63
- if : matrix.os == 'ubuntu-16.04' && github.ref != 'refs/heads/release'
64
- run : ./dist/rust-analyzer-linux analysis-stats .
105
+ - name : Upload artifacts
106
+ uses : actions/upload-artifact@v1
107
+ with :
108
+ name : dist-macos-latest
109
+ path : ./dist
110
+
111
+ dist-macos-11.0 :
112
+ name : dist (MacOS 11.0)
113
+ runs-on : macos-11.0
114
+
115
+ steps :
116
+ - name : Checkout repository
117
+ uses : actions/checkout@v2
118
+
119
+ - name : Install Rust toolchain (beta)
120
+ uses : actions-rs/toolchain@v1
121
+ with :
122
+ toolchain : beta
123
+ target : aarch64-apple-darwin
124
+ profile : minimal
125
+ override : true
126
+
127
+ - name : Dist
128
+ run : cargo xtask dist
129
+ env :
130
+ RA_TARGET : aarch64-apple-darwin
65
131
66
132
- name : Upload artifacts
67
133
uses : actions/upload-artifact@v1
68
134
with :
69
- name : dist-${{ matrix.os }}
135
+ name : dist-macos-11.0
70
136
path : ./dist
71
137
72
138
publish :
73
139
name : publish
74
140
runs-on : ubuntu-16.04
75
- needs : ['dist']
141
+ needs : ['dist-windows', 'dist-ubuntu-16.04', 'dist-macos-latest', 'dist-macos-11.0 ']
76
142
steps :
77
143
- name : Install Nodejs
78
144
uses : actions/setup-node@v1
@@ -91,6 +157,10 @@ jobs:
91
157
- run : echo "HEAD_SHA=$(git rev-parse HEAD)" >> $GITHUB_ENV
92
158
- run : ' echo "HEAD_SHA: $HEAD_SHA"'
93
159
160
+ - uses : actions/download-artifact@v1
161
+ with :
162
+ name : dist-macos-11.0
163
+ path : dist
94
164
- uses : actions/download-artifact@v1
95
165
with :
96
166
name : dist-macos-latest
@@ -103,7 +173,7 @@ jobs:
103
173
with :
104
174
name : dist-windows-latest
105
175
path : dist
106
- - run : ls -all ./dist
176
+ - run : ls -al ./dist
107
177
108
178
- name : Publish Release
109
179
uses : ./.github/actions/github-release
0 commit comments