Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 28 additions & 8 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,33 @@ env:
CARGO_TERM_COLOR: always

jobs:
build:

test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Build
run: cargo build --verbose
- name: Run tests
run: cargo test --verbose
- uses: actions/checkout@v4

- name: Install Rust (stable)
uses: dtolnay/rust-toolchain@master
Comment thread
WendellXY marked this conversation as resolved.
with:
toolchain: stable

- name: Cache Rust builds
uses: Swatinem/rust-cache@v2

- name: Install cargo-binstall
uses: taiki-e/install-action@v2
with:
tool: cargo-binstall

- name: Install langcodec-cli (prebuilt if available)
run: cargo binstall -y langcodec-cli

- name: Verify CLI
run: |
langcodec --help

- name: Build
run: cargo build --verbose

- name: Test
run: cargo test --verbose
Loading