Files
akaza/.github/workflows/ci-simple.yml
Tokuhiro Matsuno a08c8ab6ed enable cargo-deny
2023-01-17 17:06:11 +09:00

43 lines
1000 B
YAML

name: Akaza basic test
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/cache@v3
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install ibus libgirepository1.0-dev libmarisa-dev clang libibus-1.0-dev unzip
- name: make test data
run: |
cd akaza-data/ && make test-data
- name: make some configuration files for ibus-akaza
run: |
cd ibus-akaza/ && make
- uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt, deny
- run: cargo fmt --all --check
- run: cargo clippy -- -D warnings
- run: cargo deny check
- run: cargo test