Skip to content

feat: add interactive review mode #3

feat: add interactive review mode

feat: add interactive review mode #3

Workflow file for this run

name: CI & Release
on:
push:
branches: [ main ]
tags: [ 'v*' ]
pull_request:
branches: [ main ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
name: Test on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
release:
name: Release Binaries
if: startsWith(github.ref, 'refs/tags/')
needs: test
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
artifact_name: image-diff-linux
- os: macos-latest
target: x86_64-apple-darwin
artifact_name: image-diff-macos
- os: windows-latest
target: x86_64-pc-windows-msvc
artifact_name: image-diff-windows.exe
steps:
- uses: actions/checkout@v4
- name: Build release
run: cargo build --release --target ${{ matrix.target }}
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact_name }}
path: target/${{ matrix.target }}/release/${{ matrix.os == 'windows-latest' && 'image-diff.exe' || 'image-diff' }}