| 1 |
name: Code coverage check |
| 2 |
|
| 3 |
on: |
| 4 |
push: |
| 5 |
|
| 6 |
env: |
| 7 |
BUILDER_VERSION: v0.9.72 |
| 8 |
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net |
| 9 |
BUILDER_SOURCE: releases |
| 10 |
PACKAGE_NAME: aws-c-sdkutils |
| 11 |
CRT_CI_ROLE: ${{ secrets.CRT_CI_ROLE_ARN }} |
| 12 |
AWS_DEFAULT_REGION: us-east-1 |
| 13 |
|
| 14 |
permissions: |
| 15 |
id-token: write |
| 16 |
|
| 17 |
jobs: |
| 18 |
codecov-linux: |
| 19 |
runs-on: ubuntu-24.04 |
| 20 |
steps: |
| 21 |
- uses: aws-actions/configure-aws-credentials@v6 |
| 22 |
with: |
| 23 |
role-to-assume: ${{ env.CRT_CI_ROLE }} |
| 24 |
aws-region: ${{ env.AWS_DEFAULT_REGION }} |
| 25 |
- name: Checkout Sources |
| 26 |
uses: actions/checkout@v4 |
| 27 |
- name: Build ${{ env.PACKAGE_NAME }} + consumers |
| 28 |
run: | |
| 29 |
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')" |
| 30 |
chmod a+x builder |
| 31 |
./builder build -p ${{ env.PACKAGE_NAME }} --compiler=gcc-9 --coverage |