Skip to content

Commit

Permalink
Merge pull request #4 from shawn111/ci
Browse files Browse the repository at this point in the history
add github action as ci
  • Loading branch information
rano-oss authored Dec 21, 2024
2 parents cae5f9e + 53fce83 commit 2de507b
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Cargo Build & Test

on:
push:
pull_request:

env:
CARGO_TERM_COLOR: always

jobs:
build_and_test:
name: Rust project - latest
runs-on: ubuntu-latest
strategy:
matrix:
toolchain:
- stable
# - beta
# - nightly
steps:
- uses: actions/checkout@v4
- run: sudo apt update && sudo apt install -y libchewing libxkbcommon-dev
- run: rustup update ${{ matrix.toolchain }} && rustup default ${{ matrix.toolchain }}
- run: cargo build --verbose
- run: cargo test --verbose

0 comments on commit 2de507b

Please sign in to comment.