Skip to content

Update rust.yml

Update rust.yml #14

Workflow file for this run

name: Rust
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- name: Install Rust
run: rustup update stable
- name: Build
run: cargo build --release --verbose
- name: Run tests
run: cargo test --verbose
- name: Upload binary
uses: actions/upload-artifact@v3
with:
name: ${{ matrix.os }}-binary
path: target/release/raclette_vault${{ matrix.os == 'windows-latest' && '.exe' || '' }}