Skip to content

yml file changes

yml file changes #30

Workflow file for this run

name: Rust
on:
push:
branches: [ "main","scratch" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
os: [windows-latest, macos-latest]
toolchain:
- stable
# - beta
# - nightly
steps:
- name: Checkout
uses: actions/[email protected]
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: ${{ matrix.toolchain }}
override: true
- name: Install Rust toolchain
run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- name: Verify Rust installation
run: rustc --version && cargo --version
# - name: Cargo Clean
# run: cargo clean
- name: Build
run: cargo build --release --verbose
- name: Run tests
run: cargo test --verbose