Release v0.2.39 #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
name: cargo test | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
rust: [1.21.0, stable] | |
include: | |
- os: ubuntu-latest | |
rust: nightly | |
- os: windows-latest | |
rust: stable-i686 | |
- os: windows-latest | |
rust: stable-x86_64-gnu | |
steps: | |
- name: Checkout sources | |
uses: actions/checkout@v1 | |
- name: Install toolchain | |
uses: actions-rs/toolchain@v1 | |
with: | |
toolchain: ${{ matrix.rust }} | |
override: true | |
- name: Generate lock file | |
uses: actions-rs/cargo@v1 | |
with: | |
command: generate-lockfile | |
# cfg-if 0.1.10 does not support rust 1.21.0, so downgrade it to the last | |
# known working version after generating the lockfile above | |
- name: Downgrade dependencies | |
uses: actions-rs/cargo@v1 | |
with: | |
command: update | |
args: -p cfg-if --precise 0.1.9 | |
if: matrix.rust == '1.21.0' | |
- name: Run `cargo check` | |
uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
- name: Run `cargo test` | |
uses: actions-rs/cargo@v1 | |
with: | |
command: test |