Unverified Commit f241307f authored by Russell Cohen's avatar Russell Cohen Committed by GitHub
Browse files

Add CI job that cargo-checks all services (#543)

* Generate an SDK with all services during CI

* Add one model as a canary

* Add all AWS service models

* Rename CI step
parent b8a3b28a
Loading
Loading
Loading
Loading
+38 −0
Original line number Diff line number Diff line
@@ -284,3 +284,41 @@ jobs:
    - name: Cargo Clippy
      run: cargo clippy -- -D warnings
      working-directory: aws-sdk

  all-services-check:
    name: cargo check all services
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - uses: actions/cache@v2
      name: Gradle Cache
      with:
        path: |
          ~/.gradle/caches
          ~/.gradle/wrapper
        key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
        restore-keys: |
          ${{ runner.os }}-gradle-
    - uses: actions-rs/toolchain@v1
      with:
        toolchain: ${{ env.rust_version }}
        components: ${{ env.rust_toolchain_components }}
        default: true
    - name: Set up JDK
      uses: actions/setup-java@v1
      with:
        java-version: ${{ env.java_version }}
    - name: generate a check all services
      run: ./gradlew :aws:sdk:cargoCheck
      env:
        GENERATE_ALL_SERVICES: 'true'
    - name: Generate a name for the SDK
      id: gen-name
      run: echo "name=${GITHUB_REF##*/}" >> $GITHUB_ENV
    - uses: actions/upload-artifact@v2
      name: Upload SDK Artifact
      with:
        name: aws-sdk-all-services-${{ env.name }}-${{ github.sha }}
        path: |
          aws/sdk/build/aws-sdk/
          !aws/sdk/build/aws-sdk/target
+0 −1
Original line number Diff line number Diff line
@@ -95,7 +95,6 @@ class SigV4SigningFeature(private val runtimeConfig: RuntimeConfig, private val
    override fun section(section: OperationSection): Writable {
        return when (section) {
            is OperationSection.MutateRequest -> writable {
                // TODO: this needs to be customized for individual operations, not just `default_config()`
                rustTemplate(
                    """
                ##[allow(unused_mut)]
+2076 −0

File added.

Preview size limit exceeded, changes collapsed.

+4826 −0

File added.

Preview size limit exceeded, changes collapsed.

+3231 −0

File added.

Preview size limit exceeded, changes collapsed.

Loading