diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3bac2c72b..95f55794f 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -29,14 +29,9 @@ jobs: - name: Install Rust toolchain (${{ matrix.rust }}) uses: actions-rs/toolchain@v1 with: - toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true - - - name: Debug Check (default features) - run: | - git rev-list origin/main..$GITHUB_SHA | xargs -t -I % sh -c 'git checkout %; cargo check --tests --all --target=${{ matrix.target }}' - git checkout $GITHUB_SHA + toolchain: ${{ matrix.rust }} + target: ${{ matrix.target }} + override: true - name: Build (default features) run: cargo rustc --locked --bin cloud-hypervisor -- -D warnings diff --git a/.github/workflows/quality-aarch64.yaml b/.github/workflows/quality-aarch64.yaml index 0cc186930..0dd567942 100644 --- a/.github/workflows/quality-aarch64.yaml +++ b/.github/workflows/quality-aarch64.yaml @@ -25,10 +25,16 @@ jobs: - name: Install Rust toolchain (${{ matrix.rust }}) uses: actions-rs/toolchain@v1 with: - toolchain: ${{ matrix.rust }} - target: ${{ matrix.target }} - override: true - components: rustfmt, clippy + toolchain: ${{ matrix.rust }} + target: ${{ matrix.target }} + override: true + components: rustfmt, clippy + + - name: Debug Check (default features) + run: | + git rev-list origin/main..$GITHUB_SHA | xargs -t -I % sh -c 'git checkout %; cargo check --tests --all --target=${{ matrix.target }}' + git checkout $GITHUB_SHA + - name: Formatting (rustfmt) run: cargo fmt -- --check diff --git a/.github/workflows/quality.yaml b/.github/workflows/quality.yaml index a3045dee8..faca6c4fc 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/quality.yaml @@ -30,6 +30,11 @@ jobs: override: true components: rustfmt, clippy + - name: Debug Check (default features) + run: | + git rev-list origin/main..$GITHUB_SHA | xargs -t -I % sh -c 'git checkout %; cargo check --tests --all --target=${{ matrix.target }}' + git checkout $GITHUB_SHA + - name: Formatting (rustfmt) run: cargo fmt -- --check