name: ci-flow
on:
pull_request:
push:
branches:
- master
- "releases/*"
jobs:
build:
runs-on: ${{ matrix.os.imageName }}
strategy:
matrix:
rust_toolchain: ["stable"]
os:
- imageName: ubuntu-18.04
target: x86_64-unknown-linux-gnu
profile: linux
- imageName: "macOS-latest"
target: x86_64-apple-darwin
profile: mac
- imageName: "windows-2019"
target: x86_64-pc-windows-msvc
profile: windows
steps:
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.rust_toolchain }}
override: true
- uses: davidB/rust-cargo-make@v1
- uses: actions/checkout@v1
- name: Run tests
run: cargo make --profile ci-static-code-analysis-tasks --env TARGET=${{matrix.os.target}} ci-flow
env:
CARGO_MAKE_RUN_CODECOV: "true"
CARGO_MAKE_BUILD_EXAMPLES: "true"
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}