|
|
@ -8,6 +8,9 @@ on:
|
|
|
|
|
|
|
|
|
|
|
|
name: CI
|
|
|
|
name: CI
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
|
|
|
|
CI_CARGO_MAKE_VERSION: 0.32.9
|
|
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
linux:
|
|
|
|
name: Linux
|
|
|
|
name: Linux
|
|
|
@ -18,39 +21,30 @@ jobs:
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- name: "Install dependencies"
|
|
|
|
- name: "Install dependencies"
|
|
|
|
run: sudo apt-get install libncurses5-dev
|
|
|
|
run: sudo apt-get install libncurses5-dev
|
|
|
|
|
|
|
|
- uses: hecrj/setup-rust-action@967aec96c6a27a0ce15c1dac3aaba332d60565e2
|
|
|
|
|
|
|
|
with:
|
|
|
|
|
|
|
|
rust-version: ${{ matrix.rust }}
|
|
|
|
|
|
|
|
components: rustfmt,clippy
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
- name: "Cache cargo make"
|
|
|
|
|
|
|
|
id: cache-cargo-make
|
|
|
|
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
profile: default
|
|
|
|
path: ~/.cargo/bin/cargo-make
|
|
|
|
toolchain: ${{ matrix.rust }}
|
|
|
|
key: ${{ runner.os }}-${{ matrix.rust }}-${{ env.CI_CARGO_MAKE_VERSION }}
|
|
|
|
override: true
|
|
|
|
|
|
|
|
- name: "Install cargo-make"
|
|
|
|
- name: "Install cargo-make"
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
if: steps.cache-cargo-make.outputs.cache-hit != 'true'
|
|
|
|
with:
|
|
|
|
run: cargo install cargo-make --version ${{ env.CI_CARGO_MAKE_VERSION }}
|
|
|
|
command: install
|
|
|
|
|
|
|
|
args: cargo-make
|
|
|
|
|
|
|
|
- name: "Format"
|
|
|
|
- name: "Format"
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
run: cargo make fmt
|
|
|
|
with:
|
|
|
|
|
|
|
|
command: make
|
|
|
|
|
|
|
|
args: fmt
|
|
|
|
|
|
|
|
- name: "Check"
|
|
|
|
- name: "Check"
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
run: cargo make check
|
|
|
|
with:
|
|
|
|
|
|
|
|
command: make
|
|
|
|
|
|
|
|
args: check
|
|
|
|
|
|
|
|
- name: "Test"
|
|
|
|
- name: "Test"
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
run: cargo make test
|
|
|
|
with:
|
|
|
|
|
|
|
|
command: make
|
|
|
|
|
|
|
|
args: test
|
|
|
|
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
RUST_BACKTRACE: full
|
|
|
|
RUST_BACKTRACE: full
|
|
|
|
- name: "Clippy"
|
|
|
|
- name: "Clippy"
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
run: cargo make clippy
|
|
|
|
with:
|
|
|
|
|
|
|
|
command: make
|
|
|
|
|
|
|
|
args: clippy
|
|
|
|
|
|
|
|
windows:
|
|
|
|
windows:
|
|
|
|
name: Windows
|
|
|
|
name: Windows
|
|
|
|
runs-on: windows-latest
|
|
|
|
runs-on: windows-latest
|
|
|
@ -59,35 +53,27 @@ jobs:
|
|
|
|
rust: ["1.44.0", "stable"]
|
|
|
|
rust: ["1.44.0", "stable"]
|
|
|
|
steps:
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- uses: actions-rs/toolchain@v1
|
|
|
|
- uses: hecrj/setup-rust-action@967aec96c6a27a0ce15c1dac3aaba332d60565e2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
profile: default
|
|
|
|
rust-version: ${{ matrix.rust }}
|
|
|
|
toolchain: ${{ matrix.rust }}
|
|
|
|
components: rustfmt,clippy
|
|
|
|
override: true
|
|
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: "Install cargo-make"
|
|
|
|
- name: "Cache cargo make"
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
id: cache-cargo-make
|
|
|
|
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
command: install
|
|
|
|
path: ~/.cargo/bin/cargo-make
|
|
|
|
args: cargo-make
|
|
|
|
key: ${{ runner.os }}-${{ matrix.rust }}-${{ env.CI_CARGO_MAKE_VERSION }}
|
|
|
|
|
|
|
|
- name: "Install cargo-make"
|
|
|
|
|
|
|
|
if: steps.cache-cargo-make.outputs.cache-hit != 'true'
|
|
|
|
|
|
|
|
run: cargo install cargo-make --version ${{ env.CI_CARGO_MAKE_VERSION }}
|
|
|
|
- name: "Format"
|
|
|
|
- name: "Format"
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
run: cargo make fmt
|
|
|
|
with:
|
|
|
|
|
|
|
|
command: make
|
|
|
|
|
|
|
|
args: fmt
|
|
|
|
|
|
|
|
- name: "Check"
|
|
|
|
- name: "Check"
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
run: cargo make check
|
|
|
|
with:
|
|
|
|
|
|
|
|
command: make
|
|
|
|
|
|
|
|
args: check
|
|
|
|
|
|
|
|
- name: "Test"
|
|
|
|
- name: "Test"
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
run: cargo make test
|
|
|
|
with:
|
|
|
|
|
|
|
|
command: make
|
|
|
|
|
|
|
|
args: test
|
|
|
|
|
|
|
|
env:
|
|
|
|
env:
|
|
|
|
RUST_BACKTRACE: full
|
|
|
|
RUST_BACKTRACE: full
|
|
|
|
- name: "Clippy"
|
|
|
|
- name: "Clippy"
|
|
|
|
uses: actions-rs/cargo@v1
|
|
|
|
run: cargo make clippy
|
|
|
|
with:
|
|
|
|
|
|
|
|
command: make
|
|
|
|
|
|
|
|
args: clippy
|
|
|
|
|
|
|
|