setup GitHub Actions

This commit is contained in:
Runji Wang 2020-06-30 12:48:17 +08:00
parent 06e3c38360
commit 17df6d9b6a
2 changed files with 42 additions and 0 deletions

40
.github/workflows/main.yml vendored Normal file
View File

@ -0,0 +1,40 @@
name: CI
on: [push, pull_request]
jobs:
check:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
components: rustfmt, clippy
- name: Check code format
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
- name: Docs
uses: actions-rs/cargo@v1
with:
command: doc

View File

@ -1,3 +1,5 @@
# x86-smpboot
[![CI](https://github.com/rcore-os/x86-smpboot/workflows/CI/badge.svg?branch=master)](https://github.com/rcore-os/x86-smpboot/actions)
Booting multi-processors on x86 bare-metal.