From 492b9e2dce835509efa221fbe9807be8dc0ede90 Mon Sep 17 00:00:00 2001 From: Yu Chen Date: Thu, 5 Aug 2021 08:37:44 +0800 Subject: [PATCH] update CI --- .github/workflows/main.yml | 9 ++++++++- code/Cargo.toml | 2 +- code/ch01-03/src/object/handle.rs | 2 +- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 000332a..3997edf 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -21,6 +21,8 @@ jobs: run: | cd code cargo fmt --all -- --check + cd ../ch02-03 + cargo fmt --all -- --check # uses: actions-rs/cargo@v1 # with: # command: fmt @@ -29,6 +31,8 @@ jobs: run: | cd code cargo clippy + cd ../ch02-03 + cargo clippy # uses: actions-rs/cargo@v1 # with: # command: clippy @@ -50,10 +54,11 @@ jobs: run: | cd code cargo build + cd ../ch02-03 + cargo build # uses: actions-rs/cargo@v1 # with: # command: build - test: runs-on: ${{ matrix.os }} strategy: @@ -72,3 +77,5 @@ jobs: run: | cd code cargo test + cd ../ch02-03 + cargo test diff --git a/code/Cargo.toml b/code/Cargo.toml index 94ab6b8..4d425da 100644 --- a/code/Cargo.toml +++ b/code/Cargo.toml @@ -4,5 +4,5 @@ members = [ "ch01-02", "ch01-03", "ch02-02", - "ch02-03", +# "ch02-03", ] diff --git a/code/ch01-03/src/object/handle.rs b/code/ch01-03/src/object/handle.rs index 592282d..58a0b47 100644 --- a/code/ch01-03/src/object/handle.rs +++ b/code/ch01-03/src/object/handle.rs @@ -1,5 +1,5 @@ // ANCHOR: handle -use super::{DummyObject, KernelObject, Rights}; +use super::{KernelObject, Rights}; use alloc::sync::Arc; /// 内核对象句柄