Skip to content

ci/cd: build also linux target #45

ci/cd: build also linux target

ci/cd: build also linux target #45

Workflow file for this run

name: check-build
on:
push:
branches: '*'
pull_request:
branches: '*'
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: windows-latest
target: x86_64-pc-windows-msvc
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Use Rust stable
uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
override: true
- name: Build with Cargo
uses: actions-rs/cargo@v1
with:
command: build
args: --release --target ${{ matrix.target }}
- name: Run tests
run: cargo test --verbose