2020-12-06 15:46:59 +00:00
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
2019-11-05 07:24:14 +00:00
|
|
|
|
|
|
|
name: CI
|
|
|
|
|
2020-12-06 17:31:54 +00:00
|
|
|
env:
|
2022-08-14 12:42:47 +00:00
|
|
|
CI_CARGO_MAKE_VERSION: 0.35.16
|
2020-12-06 17:31:54 +00:00
|
|
|
|
2019-11-05 07:24:14 +00:00
|
|
|
jobs:
|
|
|
|
linux:
|
|
|
|
name: Linux
|
|
|
|
runs-on: ubuntu-latest
|
2020-08-02 14:17:57 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-02-15 12:59:50 +00:00
|
|
|
rust: ["1.59.0", "stable"]
|
2019-11-05 07:24:14 +00:00
|
|
|
steps:
|
2020-12-06 17:31:54 +00:00
|
|
|
- uses: hecrj/setup-rust-action@967aec96c6a27a0ce15c1dac3aaba332d60565e2
|
|
|
|
with:
|
|
|
|
rust-version: ${{ matrix.rust }}
|
|
|
|
components: rustfmt,clippy
|
2019-11-05 07:24:14 +00:00
|
|
|
- uses: actions/checkout@v1
|
2020-12-07 22:24:32 +00:00
|
|
|
- name: "Get cargo bin directory"
|
|
|
|
id: cargo-bin-dir
|
|
|
|
run: echo "::set-output name=dir::$HOME/.cargo/bin"
|
2020-12-06 17:31:54 +00:00
|
|
|
- name: "Cache cargo make"
|
|
|
|
id: cache-cargo-make
|
|
|
|
uses: actions/cache@v2
|
2019-11-05 07:24:14 +00:00
|
|
|
with:
|
2020-12-07 22:24:32 +00:00
|
|
|
path: ${{ steps.cargo-bin-dir.outputs.dir }}/cargo-make
|
|
|
|
key: ${{ runner.os }}-${{ matrix.rust }}-cargo-make-${{ env.CI_CARGO_MAKE_VERSION }}
|
2020-12-06 15:27:54 +00:00
|
|
|
- name: "Install cargo-make"
|
2020-12-06 17:31:54 +00:00
|
|
|
if: steps.cache-cargo-make.outputs.cache-hit != 'true'
|
|
|
|
run: cargo install cargo-make --version ${{ env.CI_CARGO_MAKE_VERSION }}
|
2021-11-11 14:56:37 +00:00
|
|
|
- name: "Format / Build / Test"
|
|
|
|
run: cargo make ci
|
2020-08-02 16:30:52 +00:00
|
|
|
env:
|
|
|
|
RUST_BACKTRACE: full
|
2019-11-05 07:24:14 +00:00
|
|
|
windows:
|
|
|
|
name: Windows
|
|
|
|
runs-on: windows-latest
|
2020-08-02 14:17:57 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-02-15 12:59:50 +00:00
|
|
|
rust: ["1.59.0", "stable"]
|
2019-11-05 07:24:14 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v1
|
2020-12-06 17:31:54 +00:00
|
|
|
- uses: hecrj/setup-rust-action@967aec96c6a27a0ce15c1dac3aaba332d60565e2
|
2019-11-05 07:24:14 +00:00
|
|
|
with:
|
2020-12-06 17:31:54 +00:00
|
|
|
rust-version: ${{ matrix.rust }}
|
|
|
|
components: rustfmt,clippy
|
|
|
|
- uses: actions/checkout@v1
|
2020-12-07 22:24:32 +00:00
|
|
|
- name: "Get cargo bin directory"
|
|
|
|
id: cargo-bin-dir
|
|
|
|
run: echo "::set-output name=dir::$HOME\.cargo\bin"
|
2020-12-06 17:31:54 +00:00
|
|
|
- name: "Cache cargo make"
|
|
|
|
id: cache-cargo-make
|
|
|
|
uses: actions/cache@v2
|
2020-12-06 15:27:54 +00:00
|
|
|
with:
|
2020-12-07 22:24:32 +00:00
|
|
|
path: ${{ steps.cargo-bin-dir.outputs.dir }}\cargo-make.exe
|
|
|
|
key: ${{ runner.os }}-${{ matrix.rust }}-cargo-make-${{ env.CI_CARGO_MAKE_VERSION }}
|
2020-12-06 17:31:54 +00:00
|
|
|
- name: "Install cargo-make"
|
|
|
|
if: steps.cache-cargo-make.outputs.cache-hit != 'true'
|
|
|
|
run: cargo install cargo-make --version ${{ env.CI_CARGO_MAKE_VERSION }}
|
2021-11-11 14:56:37 +00:00
|
|
|
- name: "Format / Build / Test"
|
|
|
|
run: cargo make ci
|
2020-08-02 16:30:52 +00:00
|
|
|
env:
|
|
|
|
RUST_BACKTRACE: full
|