File tree 1 file changed +8
-26
lines changed
1 file changed +8
-26
lines changed Original file line number Diff line number Diff line change @@ -24,30 +24,12 @@ jobs:
24
24
- build : windows
25
25
os : windows-latest
26
26
steps :
27
- - uses : actions/checkout@v1
28
- - name : Cache CARGO_HOME
29
- uses : actions/cache@v1
27
+ - uses : actions/checkout@v2
28
+ - uses : actions-rs/toolchain@v1
30
29
with :
31
- path : ~/.cargo
32
- key : ${{ runner.os }}-cargo-home
33
- - name : Install Rust
34
- shell : bash
35
- run : |
36
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
37
- sh -s -- -y --default-toolchain=none --profile=minimal
38
- export PATH="$HOME/.cargo/bin:$PATH"
39
- rustup override set stable
40
- # FIXME: Do not update it unless we want Rust newer features
41
- #rustup update --no-self-update stable
42
- echo "##[add-path]$HOME/.cargo/bin"
43
- - run : cargo build
44
- # FIXME: Cannot access /dev/stderr on Linux/macOs in Actions
45
- - if : runner.os == 'Windows'
46
- run : cargo test
47
- # FIXME: The install-upgrade feature only exit on Rust 1.41.0
48
- # - shell: bash
49
- # run: |
50
- # cargo install --debug --no-default-features \
51
- # --features ci-autoclean --bin cargo-cache \
52
- # --git https://github.com/matthiaskrgr/cargo-cache -- cargo-cache
53
- # cargo cache
30
+ toolchain : stable
31
+
32
+ - uses : actions-rs/cargo@v1
33
+ with :
34
+ command : build
35
+
You can’t perform that action at this time.
0 commit comments