Skip to content

Commit

Permalink
Merge pull request #27 from eminence/ci
Browse files Browse the repository at this point in the history
Update and fix github CI
  • Loading branch information
eminence authored Aug 5, 2021
2 parents 631b74e + dc9a8f4 commit 0f36d74
Showing 1 changed file with 8 additions and 26 deletions.
34 changes: 8 additions & 26 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,30 +24,12 @@ jobs:
- build: windows
os: windows-latest
steps:
- uses: actions/checkout@v1
- name: Cache CARGO_HOME
uses: actions/cache@v1
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
path: ~/.cargo
key: ${{ runner.os }}-cargo-home
- name: Install Rust
shell: bash
run: |
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | \
sh -s -- -y --default-toolchain=none --profile=minimal
export PATH="$HOME/.cargo/bin:$PATH"
rustup override set stable
# FIXME: Do not update it unless we want Rust newer features
#rustup update --no-self-update stable
echo "##[add-path]$HOME/.cargo/bin"
- run: cargo build
# FIXME: Cannot access /dev/stderr on Linux/macOs in Actions
- if: runner.os == 'Windows'
run: cargo test
# FIXME: The install-upgrade feature only exit on Rust 1.41.0
#- shell: bash
# run: |
# cargo install --debug --no-default-features \
# --features ci-autoclean --bin cargo-cache \
# --git https://github.com/matthiaskrgr/cargo-cache -- cargo-cache
# cargo cache
toolchain: stable

- uses: actions-rs/cargo@v1
with:
command: build

0 comments on commit 0f36d74

Please sign in to comment.