Skip to content
This repository has been archived by the owner on Dec 10, 2024. It is now read-only.

update rust workflow #2

update rust workflow

update rust workflow #2

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
architecture: [x64, x86, arm64, armv7]
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Rust
uses: actions/setup-rust@v1
with:
rust-version: stable
- name: Build
run: cargo build --verbose --release --target ${{ matrix.os }}-${{ matrix.architecture }}
- name: Run tests
run: cargo test --verbose --target ${{ matrix.os }}-${{ matrix.architecture }}