From d9ac12da74b749b8d7f5366d6d770f538aff31ee Mon Sep 17 00:00:00 2001 From: zjp Date: Sun, 19 Jan 2025 15:54:02 +0800 Subject: [PATCH] ci: clippy & build testos --- .github/workflows/ci.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 22aec68..d59b9c8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,10 +25,18 @@ jobs: - name: Check code format run: cargo fmt --all -- --check - name: Clippy - run: cargo hack clippy --target ${{ matrix.targets }} --each-feature + run: cargo hack clippy --target ${{ matrix.targets }} --each-feature -- -D warnings - name: Build run: cargo hack build --target ${{ matrix.targets }} --each-feature + - name: Clippy on testos + working-directory: example/testos + run: cargo clippy --target ${{ matrix.targets }} -- -D warnings + + - name: Build testos + working-directory: example/testos + run: cargo build --target ${{ matrix.targets }} + # FIXME: cp: cannot create regular file '../../../tftpboot/': Not a directory - - name: Run Example + - name: Run testos run: cd example && make all