Unverified Commit 986be4b8 authored by John DiSanti's avatar John DiSanti Committed by GitHub
Browse files

Remove redundant check step from CI (#649)

parent 58d0da50
Loading
Loading
Loading
Loading
+1 −41
Original line number Diff line number Diff line
on:
  push:
    branches: ['main']
    branches: [main]
    tags:
    - '*'
  pull_request:
@@ -187,46 +187,6 @@ jobs:
        name: aws-sdk-${{ env.name }}-tier1-${{ github.sha }}
        path: sdk.tar

  check-sdk:
    name: AWS Rust SDK Tier 1 - cargo check
    needs: generate-sdk
    runs-on: ubuntu-latest
    steps:
    - uses: actions-rs/toolchain@v1
      with:
        toolchain: ${{ env.rust_version }}
        components: ${{ env.rust_toolchain_components }}
        default: true
    - name: Generate a name for the SDK
      id: gen-name
      run: echo "name=${GITHUB_REF##*/}" >> $GITHUB_ENV
    - uses: actions/download-artifact@v2
      name: Download SDK Artifact
      with:
        name: aws-sdk-${{ env.name }}-tier1-${{ github.sha }}
        path: artifact
    - name: untar
      run: mkdir aws-sdk && cd aws-sdk && tar -xvf ../artifact/sdk.tar
    - uses: actions/cache@v2
      with:
        path: |
          ~/.cargo/registry
          ~/.cargo/git
          target
        key: ${{ runner.os }}-${{ env.rust_version }}-${{ github.job }}-${{ hashFiles('**/Cargo.toml') }}
        restore-keys: |
          ${{ runner.os }}-${{ env.rust_version }}-${{ github.job }}-
          ${{ runner.os }}-${{ env.rust_version }}-
    - name: Cargo Check
      run: cargo check --lib --tests --benches
      working-directory: aws-sdk
      env:
        RUSTC_FORCE_INCREMENTAL: 1
        RUSTFLAGS: -D warnings
        # Note: the .cargo/config.toml is lost because we untar the SDK rather than checking out the repo,
        # so we have to manually restore the target directory override
        CARGO_TARGET_DIR: ../target

  test-sdk:
    name: AWS Rust SDK Tier 1 - cargo test
    needs: generate-sdk