41 lines
1.1 KiB
YAML
41 lines
1.1 KiB
YAML
name: Continuous integration
|
|
|
|
on:
|
|
push:
|
|
branches: [master]
|
|
pull_request:
|
|
|
|
jobs:
|
|
fmt:
|
|
name: Rustfmt
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- name: install toolchain
|
|
run: rustup toolchain install stable --component rustfmt
|
|
- name: fmt
|
|
run: cargo fmt --all --check
|
|
|
|
clippy:
|
|
name: Clippy Check
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: install system dependencies
|
|
run: sudo apt-get update && sudo apt-get install cmake libexpat1-dev libfontconfig-dev libfreetype-dev pkg-config
|
|
- uses: actions/checkout@v3
|
|
- name: install toolchain
|
|
run: rustup show
|
|
- name: clippy
|
|
run: cargo clippy --all-features
|
|
|
|
test:
|
|
name: Test
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: install system dependencies
|
|
run: sudo apt-get update && sudo apt-get install cmake libexpat1-dev libfontconfig-dev libfreetype-dev pkg-config
|
|
- uses: actions/checkout@v3
|
|
- name: install toolchain
|
|
run: rustup show
|
|
- name: test
|
|
run: cargo test --all-features
|