File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,10 @@ inputs:
11
11
required : false
12
12
description : " Components array"
13
13
default : ' '
14
+ cache-key :
15
+ required : false
16
+ description : " Extra key to resolve cache"
17
+ default : ' '
14
18
15
19
runs :
16
20
using : " composite"
24
28
25
29
# For notes about the cache, see 'Full CI' workflow
26
30
- uses : Swatinem/rust-cache@v1
31
+ with :
32
+ sharedKey : ${{ inputs.cache-key }}
Original file line number Diff line number Diff line change @@ -123,13 +123,27 @@ jobs:
123
123
- os : { id: ubuntu-latest, name: linux }
124
124
rust : { toolchain: '1.51', postfix: ' (msrv 1.51)' }
125
125
testflags : ' -- --skip ui_tests'
126
+ - os : { id: ubuntu-latest, name: linux }
127
+ rust : { toolchain: 'stable', postfix: ' (minimal-deps)', special: 'minimal-deps' }
126
128
runs-on : ${{ matrix.os.id }}
127
129
steps :
128
130
- uses : actions/checkout@v2
131
+ - name : " Install nightly Rust (minimal-deps only)"
132
+ uses : actions-rs/toolchain@v1
133
+ with :
134
+ profile : minimal
135
+ toolchain : nightly
136
+ override : false # use selected toolchain for remainder of this step
137
+ components : cargo
138
+ if : ${{ matrix.rust.special == 'minimal-deps' }}
139
+ - name : " Install minimal dependency versions from Cargo"
140
+ run : cargo +nightly update -Z minimal-versions
141
+ if : ${{ matrix.rust.special == 'minimal-deps' }}
129
142
- name : " Install Rust"
130
143
uses : ./.github/composite/rust
131
144
with :
132
145
rust : ${{ matrix.rust.toolchain }}
146
+ cache-key : ${{ matrix.rust.special }} # 'minimal-deps' or empty/not defined
133
147
- name : " Install LLVM"
134
148
uses : ./.github/composite/llvm
135
149
if : ${{ matrix.os.id == 'windows-latest' }}
You can’t perform that action at this time.
0 commit comments