diff --git a/.github/workflows/quality-aarch64.yaml b/.github/workflows/quality-aarch64.yaml index 0dd567942..5680e8a61 100644 --- a/.github/workflows/quality-aarch64.yaml +++ b/.github/workflows/quality-aarch64.yaml @@ -21,7 +21,8 @@ jobs: experimental: true steps: - name: Code checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 + - name: Install Rust toolchain (${{ matrix.rust }}) uses: actions-rs/toolchain@v1 with: @@ -30,11 +31,6 @@ 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 diff --git a/.github/workflows/quality.yaml b/.github/workflows/quality.yaml index faca6c4fc..6f949b8b6 100644 --- a/.github/workflows/quality.yaml +++ b/.github/workflows/quality.yaml @@ -21,7 +21,10 @@ jobs: experimental: true steps: - name: Code checkout - uses: actions/checkout@v2 + uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Install Rust toolchain (${{ matrix.rust }}) uses: actions-rs/toolchain@v1 with: @@ -32,8 +35,8 @@ jobs: - 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 + git rev-list origin/${{ github.base_ref }}..${{ 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