Skip to content

chore: prepare release automation for v1.2.9 #18

chore: prepare release automation for v1.2.9

chore: prepare release automation for v1.2.9 #18

Workflow file for this run

name: CI
on:
push:
branches:
- "**"
pull_request:
jobs:
rust-quality-linux:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v6
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
targets: x86_64-unknown-linux-gnu
- name: Check formatting
run: cargo fmt --manifest-path rust/Cargo.toml --all --check
- name: Run clippy
run: cargo clippy --manifest-path rust/Cargo.toml --all-targets --target x86_64-unknown-linux-gnu -- -D warnings
- name: Run tests
run: cargo test --manifest-path rust/Cargo.toml --target x86_64-unknown-linux-gnu
windows-build-and-test:
runs-on: windows-latest
steps:
- uses: actions/checkout@v6
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
targets: x86_64-pc-windows-msvc
- name: Run clippy
shell: bash
run: cargo clippy --manifest-path rust/Cargo.toml --all-targets --target x86_64-pc-windows-msvc -- -D warnings
- name: Run tests
shell: bash
run: cargo test --manifest-path rust/Cargo.toml --target x86_64-pc-windows-msvc
linux-cli-smoke:
strategy:
fail-fast: false
matrix:
include:
- name: linux-x64
runs-on: ubuntu-24.04
target: x86_64-unknown-linux-gnu
arch: x86_64
- name: linux-arm64
runs-on: ubuntu-24.04-arm
target: aarch64-unknown-linux-gnu
arch: aarch64
runs-on: ${{ matrix.runs-on }}
steps:
- uses: actions/checkout@v6
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: ${{ matrix.target }}
- name: Build Linux CLI
run: cargo build --manifest-path rust/Cargo.toml --release --target ${{ matrix.target }} --bin codexbar
- name: Smoke test CLI
shell: bash
run: |
set -euo pipefail
BIN="rust/target/${{ matrix.target }}/release/codexbar"
"$BIN" --help >/dev/null
"$BIN" --version >/dev/null
"$BIN" usage --help >/dev/null