|
| 1 | +name: AWS CodeBuild Batch Workflow |
| 2 | + |
| 3 | +on: |
| 4 | + pull_request: |
| 5 | + push: |
| 6 | + # Run daily |
| 7 | + schedule: |
| 8 | + - cron: "0 0 * * *" |
| 9 | + |
| 10 | +permissions: |
| 11 | + id-token: write |
| 12 | + contents: read |
| 13 | + |
| 14 | +jobs: |
| 15 | + build_test_dynamic: |
| 16 | + name: Build Test Dynamic (${{ matrix.project }}) |
| 17 | + runs-on: ubuntu-latest |
| 18 | + strategy: |
| 19 | + matrix: |
| 20 | + project: [csdk-ubuntu-latest-x64-awslc, csdk-ubuntu-latest-x64] |
| 21 | + steps: |
| 22 | + - name: Configure AWS Credentials |
| 23 | + uses: aws-actions/configure-aws-credentials@v2 |
| 24 | + with: |
| 25 | + role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} |
| 26 | + aws-region: us-west-2 |
| 27 | + |
| 28 | + - name: Run CodeBuild |
| 29 | + uses: aws-actions/aws-codebuild-run-build@v1 |
| 30 | + with: |
| 31 | + project-name: ${{ matrix.project }} |
| 32 | + buildspec-override: codebuild/ubuntu-latest-x64/build_test.yml |
| 33 | + env-vars-for-codebuild: TEST_MODE |
| 34 | + env: |
| 35 | + TEST_MODE: dynamic |
| 36 | + |
| 37 | + build_test_static_debug: |
| 38 | + name: Build Test Static Debug (${{ matrix.project }}) |
| 39 | + runs-on: ubuntu-latest |
| 40 | + needs: build_test_dynamic |
| 41 | + strategy: |
| 42 | + matrix: |
| 43 | + project: [csdk-ubuntu-latest-x64-awslc, csdk-ubuntu-latest-x64] |
| 44 | + steps: |
| 45 | + - name: Configure AWS Credentials |
| 46 | + uses: aws-actions/configure-aws-credentials@v2 |
| 47 | + with: |
| 48 | + role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} |
| 49 | + aws-region: us-west-2 |
| 50 | + |
| 51 | + - name: Run CodeBuild |
| 52 | + uses: aws-actions/aws-codebuild-run-build@v1 |
| 53 | + with: |
| 54 | + project-name: ${{ matrix.project }} |
| 55 | + buildspec-override: codebuild/ubuntu-latest-x64/build_test.yml |
| 56 | + env-vars-for-codebuild: TEST_MODE |
| 57 | + env: |
| 58 | + TEST_MODE: static_debug |
| 59 | + |
| 60 | + build_test_static_valgrind: |
| 61 | + name: Build Test Static Valgrind (${{ matrix.project }}) |
| 62 | + runs-on: ubuntu-latest |
| 63 | + needs: build_test_static_debug |
| 64 | + strategy: |
| 65 | + matrix: |
| 66 | + project: [csdk-ubuntu-latest-x64-awslc, csdk-ubuntu-latest-x64] |
| 67 | + steps: |
| 68 | + - name: Configure AWS Credentials |
| 69 | + uses: aws-actions/configure-aws-credentials@v2 |
| 70 | + with: |
| 71 | + role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} |
| 72 | + aws-region: us-west-2 |
| 73 | + |
| 74 | + - name: Run CodeBuild |
| 75 | + uses: aws-actions/aws-codebuild-run-build@v1 |
| 76 | + with: |
| 77 | + project-name: ${{ matrix.project }} |
| 78 | + buildspec-override: codebuild/ubuntu-latest-x64/build_test.yml |
| 79 | + env-vars-for-codebuild: TEST_MODE |
| 80 | + env: |
| 81 | + TEST_MODE: static_valgrind |
| 82 | + |
| 83 | + compliance: |
| 84 | + name: Compliance (${{ matrix.project }}) |
| 85 | + runs-on: ubuntu-latest |
| 86 | + strategy: |
| 87 | + matrix: |
| 88 | + project: [csdk-ubuntu-latest-x64-awslc, csdk-ubuntu-latest-x64] |
| 89 | + steps: |
| 90 | + - name: Configure AWS Credentials |
| 91 | + uses: aws-actions/configure-aws-credentials@v2 |
| 92 | + with: |
| 93 | + role-to-assume: ${{ secrets.CI_AWS_ROLE_ARN }} |
| 94 | + aws-region: us-west-2 |
| 95 | + |
| 96 | + - name: Run CodeBuild |
| 97 | + uses: aws-actions/aws-codebuild-run-build@v1 |
| 98 | + with: |
| 99 | + project-name: ${{ matrix.project }} |
| 100 | + buildspec-override: codebuild/ubuntu-latest-x64/compliance.yml |
0 commit comments