Skip to content

Use version 0.3.0-dev of Jubako #42

Use version 0.3.0-dev of Jubako

Use version 0.3.0-dev of Jubako #42

Workflow file for this run

name: Cargo Build & Test
on:
pull_request:
env:
CARGO_TERM_COLOR: always
jobs:
build_and_test:
name: Rust project - latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
toolchain:
- stable
- beta
- nightly
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@master
with:
toolchain: ${{ matrix.toolchain }}
components: rustfmt
- name: Check format
run: cargo fmt --all --check
- name: Build
run: cargo build --workspace
- name: Test code
run: cargo test --workspace --verbose
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: binary-${{ matrix.os }}-${{ matrix.toolchain }}
path: |
target/debug/waj
target/debug/waj.exe
compression-level: 0