-
Notifications
You must be signed in to change notification settings - Fork 62
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
fcb38c8
commit fab83e7
Showing
2 changed files
with
131 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,19 +6,21 @@ on: | |
- 'main' | ||
|
||
env: | ||
BUILDER_VERSION: v0.9.62 | ||
BUILDER_VERSION: v0.9.72 | ||
BUILDER_SOURCE: releases | ||
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net | ||
PACKAGE_NAME: aws-c-io | ||
LINUX_BASE_IMAGE: ubuntu-18-x64 | ||
RUN: ${{ github.run_id }}-${{ github.run_number }} | ||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }} | ||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | ||
AWS_REGION: us-east-1 | ||
CRT_CI_ROLE: ${{ secrets.CRT_CI_ROLE_ARN }} | ||
AWS_DEFAULT_REGION: us-east-1 | ||
|
||
permissions: | ||
id-token: write # This is required for requesting the JWT | ||
|
||
jobs: | ||
linux-compat: | ||
runs-on: ubuntu-22.04 # latest | ||
runs-on: ubuntu-24.04 # latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -32,15 +34,23 @@ jobs: | |
- rhel8-x64 | ||
- al2-x64 | ||
steps: | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
run: | | ||
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh | ||
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }} | ||
linux-byo-crypto: | ||
runs-on: ubuntu-22.04 # latest | ||
runs-on: ubuntu-24.04 # latest | ||
steps: | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
run: | | ||
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh | ||
|
@@ -57,13 +67,21 @@ jobs: | |
- clang-9 | ||
- clang-10 | ||
- clang-11 | ||
- clang-15 | ||
- clang-17 | ||
- gcc-4.8 | ||
- gcc-5 | ||
- gcc-6 | ||
- gcc-7 | ||
- gcc-8 | ||
- gcc-11 | ||
- gcc-13 | ||
steps: | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
run: | | ||
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh | ||
|
@@ -72,28 +90,40 @@ jobs: | |
linux-debug: | ||
runs-on: ubuntu-24.04 # latest | ||
steps: | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
run: | | ||
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh | ||
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --config Debug | ||
clang-sanitizers: | ||
runs-on: ubuntu-22.04 # latest | ||
runs-on: ubuntu-24.04 # latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
sanitizers: [",thread", ",address,undefined"] | ||
steps: | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
run: | | ||
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh | ||
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --compiler=clang-11 --cmake-extra=-DENABLE_SANITIZERS=ON --cmake-extra=-DSANITIZERS="${{ matrix.sanitizers }}" | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
run: | | ||
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh | ||
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build -p ${{ env.PACKAGE_NAME }} --compiler=clang-11 --cmake-extra=-DENABLE_SANITIZERS=ON --cmake-extra=-DSANITIZERS="${{ matrix.sanitizers }}" | ||
linux-shared-libs: | ||
runs-on: ubuntu-22.04 # latest | ||
runs-on: ubuntu-24.04 # latest | ||
steps: | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
run: | | ||
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh | ||
|
@@ -102,17 +132,25 @@ jobs: | |
# Test downstream repos. | ||
# This should not be required because we can run into a chicken and egg problem if there is a change that needs some fix in a downstream repo. | ||
downstream: | ||
runs-on: ubuntu-22.04 # latest | ||
runs-on: ubuntu-24.04 # latest | ||
steps: | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
run: | | ||
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh | ||
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build downstream -p ${{ env.PACKAGE_NAME }} | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
# We can't use the `uses: docker://image` version yet, GitHub lacks authentication for actions -> packages | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
run: | | ||
aws s3 cp s3://aws-crt-test-stuff/ci/${{ env.BUILDER_VERSION }}/linux-container-ci.sh ./linux-container-ci.sh && chmod a+x ./linux-container-ci.sh | ||
./linux-container-ci.sh ${{ env.BUILDER_VERSION }} aws-crt-${{ env.LINUX_BASE_IMAGE }} build downstream -p ${{ env.PACKAGE_NAME }} | ||
windows: | ||
runs-on: windows-2022 # latest | ||
steps: | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
run: | | ||
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')" | ||
|
@@ -121,6 +159,10 @@ jobs: | |
windows-debug: | ||
runs-on: windows-2022 # latest | ||
steps: | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
run: | | ||
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')" | ||
|
@@ -132,6 +174,10 @@ jobs: | |
matrix: | ||
arch: [x86, x64] | ||
steps: | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
run: | | ||
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')" | ||
|
@@ -140,6 +186,10 @@ jobs: | |
windows-shared-libs: | ||
runs-on: windows-2022 # latest | ||
steps: | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
run: | | ||
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')" | ||
|
@@ -148,6 +198,10 @@ jobs: | |
windows-app-verifier: | ||
runs-on: windows-2022 # latest | ||
steps: | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
run: | | ||
python -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')" | ||
|
@@ -159,6 +213,10 @@ jobs: | |
macos: | ||
runs-on: macos-14 # latest | ||
steps: | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
run: | | ||
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')" | ||
|
@@ -168,6 +226,10 @@ jobs: | |
macos-x64: | ||
runs-on: macos-14-large # latest | ||
steps: | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
run: | | ||
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')" | ||
|
@@ -177,46 +239,58 @@ jobs: | |
macos-debug: | ||
runs-on: macos-14 # latest | ||
steps: | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
run: | | ||
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')" | ||
chmod a+x builder | ||
./builder build -p ${{ env.PACKAGE_NAME }} --config Debug | ||
freebsd: | ||
runs-on: ubuntu-22.04 # latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
id: test | ||
uses: cross-platform-actions/[email protected] | ||
with: | ||
operating_system: freebsd | ||
architecture: x86-64 | ||
version: '14.0' | ||
cpu_count: 4 | ||
shell: bash | ||
run: | | ||
sudo pkg install -y python3 net/py-urllib3 | ||
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')" | ||
chmod a+x builder | ||
./builder build -p ${{ env.PACKAGE_NAME }} | ||
runs-on: ubuntu-24.04 # latest | ||
steps: | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
- uses: actions/checkout@v4 | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
id: test | ||
uses: cross-platform-actions/[email protected] | ||
with: | ||
operating_system: freebsd | ||
architecture: x86-64 | ||
version: '14.0' | ||
cpu_count: 4 | ||
shell: bash | ||
run: | | ||
sudo pkg install -y python3 net/py-urllib3 | ||
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')" | ||
chmod a+x builder | ||
./builder build -p ${{ env.PACKAGE_NAME }} | ||
openbsd: | ||
runs-on: ubuntu-22.04 # latest | ||
runs-on: ubuntu-24.04 # latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
id: test | ||
uses: cross-platform-actions/[email protected] | ||
with: | ||
operating_system: openbsd | ||
architecture: x86-64 | ||
version: '7.4' | ||
cpu_count: 4 | ||
shell: bash | ||
run: | | ||
sudo pkg_add py3-urllib3 | ||
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')" | ||
chmod a+x builder | ||
./builder build -p ${{ env.PACKAGE_NAME }} | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
- uses: actions/checkout@v4 | ||
- name: Build ${{ env.PACKAGE_NAME }} + consumers | ||
id: test | ||
uses: cross-platform-actions/[email protected] | ||
with: | ||
operating_system: openbsd | ||
architecture: x86-64 | ||
version: '7.4' | ||
cpu_count: 4 | ||
shell: bash | ||
run: | | ||
sudo pkg_add py3-urllib3 | ||
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder')" | ||
chmod a+x builder | ||
./builder build -p ${{ env.PACKAGE_NAME }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters