Skip to content

feat: dithering and error handling #47

feat: dithering and error handling

feat: dithering and error handling #47

Workflow file for this run

on:
push:
paths:
- "**.rs"
- "**.toml"
- ".github/workflows/**"
pull_request:
paths:
- "**.rs"
- "**.toml"
- ".github/workflows/**"
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
rust: [stable]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Restore cargo cache
uses: actions/cache@v3
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
target/
key: ${{ matrix.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Check code format
run: cargo fmt --check
- name: Run clippy
run: cargo clippy
- name: Build Release
run: "cargo build --release"
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: faerber-${{matrix.os}}
path: ./target/release/faerber${{matrix.os == 'windows-latest' && '.exe' || ''}}