Skip to content

feat: enhance sync screen with focus-based pane switching and improve… #160

feat: enhance sync screen with focus-based pane switching and improve…

feat: enhance sync screen with focus-based pane switching and improve… #160

Workflow file for this run

name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
name: Test Suite
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
rust: [stable, beta]
include:
- os: ubuntu-latest
rust: nightly
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.rust }}
components: rustfmt, clippy
- name: Cache Cargo dependencies
uses: swatinem/rust-cache@v2
with:
workspaces: '.'
- name: Check formatting
run: cargo fmt -- --check
- name: Run clippy
run: cargo clippy -- -D warnings
- name: Run tests
run: cargo test --verbose
build:
name: Build
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
target: x86_64-unknown-linux-gnu
binary_name: dotstate
- os: macos-latest
target: x86_64-apple-darwin
binary_name: dotstate
- os: macos-latest
target: aarch64-apple-darwin
binary_name: dotstate
- os: windows-latest
target: x86_64-pc-windows-msvc
binary_name: dotstate.exe
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Cache Cargo dependencies
uses: swatinem/rust-cache@v2
with:
workspaces: '.'
- name: Build
run: cargo build --release --target ${{ matrix.target }}
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dotstate-${{ matrix.target }}
path: target/${{ matrix.target }}/release/${{ matrix.binary_name }}
retention-days: 90