Skip to content

add kylin header

add kylin header #585

Workflow file for this run

name: Check
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
cancel-in-progress: true
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install Rust
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt
- name: Check formatting
run: cargo +nightly fmt --all --check
clippy:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- arch: aarch64
target: aarch64-unknown-none-softfloat
- arch: x86_64
target: x86_64-unknown-none
steps:
- uses: actions/checkout@v6
with:
submodules: "recursive"
- name: Install Rust
uses: dtolnay/rust-toolchain@nightly
with:
components: clippy
targets: ${{ matrix.target }}
- uses: Swatinem/rust-cache@v2
with:
shared-key: xkernel-check-${{ matrix.arch }}
cache-targets: false
save-if: ${{ github.ref == 'refs/heads/main' }}
- uses: arceos-org/setup-musl@v1
with:
arch: ${{ matrix.arch }}
- name: Prepare .config
run: |
if [ "${{ matrix.arch }}" = "aarch64" ]; then
cp ./platforms/aarch64-qemu-virt/defconfig .config
elif [ "${{ matrix.arch }}" = "x86_64" ]; then
cp ./platforms/x86_64-qemu-virt/defconfig .config
fi
- name: Clippy
run: |
make clippy