Skip to content

Commit 0f36d74

Browse files
authored
Merge pull request eminence#27 from eminence/ci
Update and fix github CI
2 parents 631b74e + dc9a8f4 commit 0f36d74

File tree

1 file changed

+8
-26
lines changed

1 file changed

+8
-26
lines changed

.github/workflows/main.yml

+8-26
Original file line numberDiff line numberDiff line change
@@ -24,30 +24,12 @@ jobs:
2424
- build: windows
2525
os: windows-latest
2626
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
3029
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+

0 commit comments

Comments
 (0)