Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update and fix github CI #27

Merged
merged 1 commit into from
Aug 5, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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