-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into bind-ecs-env
- Loading branch information
Showing
22 changed files
with
709 additions
and
62 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,25 +6,27 @@ on: | |
- 'main' | ||
|
||
env: | ||
BUILDER_VERSION: v0.9.52 | ||
BUILDER_VERSION: v0.9.73 | ||
BUILDER_SOURCE: releases | ||
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net | ||
PACKAGE_NAME: aws-crt-swift | ||
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: | ||
lint: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: GitHub Action for SwiftLint | ||
uses: norio-nomura/[email protected] | ||
|
||
linux: | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-24.04 | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
@@ -34,10 +36,15 @@ jobs: | |
# issue to fix centos opened against apple here: https://github.com/apple/swift-docker/issues/258 | ||
# - centos-x64 | ||
steps: | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
run: | | ||
aws s3 cp --debug 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-swift-5-${{ matrix.image }} 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 }} | ||
- name: Build ${{ env.PACKAGE_NAME }} | ||
run: | | ||
aws s3 cp --debug 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-swift-5-${{ matrix.image }} build -p ${{ env.PACKAGE_NAME }} | ||
macos: | ||
runs-on: ${{ matrix.runner }} | ||
env: | ||
|
@@ -49,17 +56,20 @@ jobs: | |
matrix: | ||
# This matrix runs tests on Mac, on oldest & newest supported Xcodes | ||
runner: | ||
- macos-12 # x64 | ||
- macos-13 # x64 | ||
- macos-14 | ||
- macos-13-xlarge | ||
- macos-14-large #x64 | ||
steps: | ||
- 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 }} | ||
- 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 }} | ||
devices: | ||
runs-on: ${{ matrix.runner }} | ||
|
@@ -72,7 +82,6 @@ jobs: | |
matrix: | ||
# This matrix runs tests on iOS, tvOS & watchOS, on oldest & newest supported Xcodes | ||
runner: | ||
- macos-12 # x64 | ||
- macos-13 # x64 | ||
- macos-14 | ||
- macos-13-xlarge | ||
|
@@ -91,8 +100,6 @@ jobs: | |
# Don't run old macOS with new Xcode | ||
- runner: macos-13-xlarge | ||
xcode: Xcode_15.2 | ||
- runner: macos-12 | ||
xcode: Xcode_15.2 | ||
- runner: macos-13 | ||
xcode: Xcode_15.2 | ||
# Don't run new macOS with old Xcode | ||
|
@@ -115,21 +122,29 @@ jobs: | |
- target: { os: watchos, destination: 'watchOS Simulator,OS=9.1,name=Apple Watch Series 5 (40mm)'} | ||
xcode: Xcode_15.2 | ||
steps: | ||
- 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 }} --target=${{ matrix.target.os }}-armv8 | ||
- 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 }} --target=${{ matrix.target.os }}-armv8 | ||
check-submodules: | ||
runs-on: ubuntu-22.04 # latest | ||
runs-on: ubuntu-24.04 # latest | ||
steps: | ||
- name: Checkout Source | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
- name: Check Submodules | ||
# note: using "@main" because "@${{env.BUILDER_VERSION}}" doesn't work | ||
# https://github.com/actions/runner/issues/480 | ||
uses: awslabs/aws-crt-builder/.github/actions/check-submodules@main | ||
- uses: aws-actions/configure-aws-credentials@v4 | ||
with: | ||
role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
- name: Checkout Source | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
fetch-depth: 0 | ||
- name: Check Submodules | ||
# note: using "@main" because "@${{env.BUILDER_VERSION}}" doesn't work | ||
# https://github.com/actions/runner/issues/480 | ||
uses: awslabs/aws-crt-builder/.github/actions/check-submodules@main |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
# Detect changes to s2n_prelude.h to update our `Package.swift` and stay in sync with it. | ||
# See: https://github.com/awslabs/aws-crt-swift/pull/299 for updating the Package.swift. | ||
|
||
name: s2n_prelude.h Change Detector | ||
|
||
on: [push] | ||
|
||
jobs: | ||
check-for-changes: | ||
|
||
runs-on: ubuntu-24.04 # latest | ||
|
||
steps: | ||
- name: Checkout Sources | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: true | ||
|
||
- name: Check s2n_prelude.h | ||
run: | | ||
TMPFILE=$(mktemp) | ||
echo "116f1525acbc94c91b0ee2ea2af9fdef aws-common-runtime/s2n/utils/s2n_prelude.h" > $TMPFILE | ||
md5sum --check $TMPFILE | ||
# No further steps if successful | ||
|
||
- name: Echo fail | ||
if: failure() | ||
run: | | ||
echo "The aws-crt-swift has a hack to manually define macros which are defined in s2n_prelude.h in Package.Swift. | ||
This check will fail whenever s2n_prelude.h is updated by the S2N team. You should make sure that Package.Swift is updated accordingly | ||
with the s2n_prelude.h changes and then run `md5sum aws-common-runtime/s2n/utils/s2n_prelude.h` and update the value above." |
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
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
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
Oops, something went wrong.