Skip to content

Add build action

Add build action #1

Workflow file for this run

name: Build
on: [push, pull_request]
jobs:
build:
name: "Build ${{ matrix.platform.target }}"
runs-on: ${{ matrix.platform.os }}
strategy:
fail-fast: false
matrix:
platform:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
- os: windows-latest
target: x86_64-pc-windows-msvc
- os: macos-latest
target: aarch64-apple-darwin
- os: macos-latest
target: x86_64-apple-darwin
steps:
- name: checkout
uses: actions/checkout@v1
- name: Install Rust toolchain
uses: actions-rs/toolchain@v1
with:
toolchain: stable
default: true
target: ${{ matrix.platform.target }}
- uses: actions-rs/cargo@v1
with:
command: build
args: --release --target ${{ matrix.platform.target }}