ci: remove Cirrus, add GitHub Actions on macOS #90
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Rust | |
permissions: read-all | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build_test: | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Build | |
run: cargo build --verbose | |
- name: Format | |
run: cargo fmt --check | |
# TODO: some KVM related tests cannot run in github runners. | |
# - name: Run tests | |
# run: cargo test --verbose | |
- name: Clippy | |
run: cargo clippy |