mirror of
https://github.com/iceHtwoO/novaOS.git
synced 2026-04-16 20:22:26 +00:00
33 lines
695 B
YAML
33 lines
695 B
YAML
name: Rust
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
env:
|
|
CARGO_TERM_COLOR: always
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install rustfmt for nightly
|
|
run: rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt
|
|
- name: Run format check
|
|
run: cargo fmt --check
|
|
- name: Run lint
|
|
run: cargo clippy
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Install rustfmt for nightly
|
|
run: rustup component add --toolchain nightly-x86_64-unknown-linux-gnu rustfmt
|
|
- name: Build
|
|
run: cargo build --verbose
|