Skip to content

chore(.github/workflows, README): update nightly versions #64

chore(.github/workflows, README): update nightly versions

chore(.github/workflows, README): update nightly versions #64

Workflow file for this run

name: Kernel CI
on:
push:
branches:
- '*'
tags:
- '*'
pull_request:
workflow_dispatch:
jobs:
check:
name: Build
env:
working-directory: ./kernel
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-12-07
- name: Install `rust-src` Rustup Component
run: rustup component add rust-src
- name: Run `cargo build`
run: make kernel_build
test:
name: Test
env:
working-directory: ./kernel
runs-on: ubuntu-latest
steps:
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-12-07
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Rustup Components
run: rustup component add rust-src llvm-tools-preview
- name: Run `cargo build`
run: make kernel_build
- name: Install QEMU (Linux)
run: sudo apt update && sudo apt install qemu-system-x86
- name: "Print QEMU Version"
run: qemu-system-x86_64 --version
- name: Run `cargo test`
run: make kernel_test
check_formatting:
name: Check Formatting
env:
working-directory: ./kernel
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-12-07
components: rustfmt
override: true
- name: Run `cargo fmt`
run: cargo fmt --all -- --check
working-directory: ${{env.working-directory}}
clippy:
name: Clippy
env:
working-directory: ./kernel
runs-on: ubuntu-latest
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Install Rust Toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: nightly-2021-12-07
components: clippy, rust-src
override: true
- name: Run `cargo clippy`
run: cargo clippy
working-directory: ${{env.working-directory}}