feat: dithering and error handling #47
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' || ''}} |