-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: Adds new workflow for building the full sdk #802
Merged
Merged
Changes from 4 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
dd3b392
Adds new workflow for building the full sdk
epau 8b64ff3
Adds command to removes release folder when generating models
epau 547e2bd
Merge branch 'main' into epau/chore/build-full-sdk
epau c12fce6
Fixes typo
epau 5327c81
Merge branch 'main' into epau/chore/build-full-sdk
epau c464758
Merge branch 'main' into epau/chore/build-full-sdk
epau File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 |
---|---|---|
@@ -0,0 +1,50 @@ | ||
# This script is for building the full SDK | ||
# It will regenerate all models, build the full SDK with the new models, and run tests. | ||
name: Codegen, Build, and Test | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
env: | ||
BUILDER_VERSION: v0.8.19 | ||
BUILDER_SOURCE: releases | ||
# host owned by CRT team to host aws-crt-builder releases. Contact their on-call with any issues | ||
BUILDER_HOST: https://d19elf31gohf1l.cloudfront.net | ||
PACKAGE_NAME: aws-sdk-swift | ||
LINUX_BASE_IMAGE: ubuntu-16-x64 | ||
RUN: ${{ github.run_id }}-${{ github.run_number }} | ||
AWS_SDK_SWIFT_CI_DIR: /Users/runner/work/aws-sdk-swift/aws-sdk-swift | ||
AWS_CRT_SWIFT_CI_DIR: /Users/runner/work/aws-sdk-swift/aws-sdk-swift/target/build/deps/aws-crt-swift | ||
SMITHY_SWIFT_CI_DIR: /Users/runner/work/aws-sdk-swift/aws-sdk-swift/target/build/deps/smithy-swift | ||
|
||
jobs: | ||
codegen-build-test: | ||
runs-on: macos-11 | ||
steps: | ||
- name: Checkout sources | ||
uses: actions/checkout@v2 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/.gradle/caches | ||
~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} | ||
restore-keys: | | ||
${{ runner.os }}-gradle- | ||
- uses: actions/setup-java@v1 | ||
with: | ||
java-version: '11' | ||
- name: Build and Test ${{ env.PACKAGE_NAME }} | ||
run: | | ||
python3 -c "from urllib.request import urlretrieve; urlretrieve('${{ env.BUILDER_HOST }}/${{ env.BUILDER_SOURCE }}/${{ env.BUILDER_VERSION }}/builder.pyz?run=${{ env.RUN }}', 'builder.pyz')" | ||
chmod a+x builder.pyz | ||
AWS_CRT_SWIFT_CI_DIR="${{ env.AWS_CRT_SWIFT_CI_DIR }}" AWS_SDK_SWIFT_CI_DIR="${{ env.AWS_SDK_SWIFT_CI_DIR }}" SMITHY_SWIFT_CI_DIR="${{ env.SMITHY_SWIFT_CI_DIR }}" ./builder.pyz build -p ${{ env.PACKAGE_NAME }} | ||
./gradlew -p codegen/sdk-codegen build | ||
rm -rf release/ | ||
./gradlew -p codegen/sdk-codegen stageSdks | ||
epau marked this conversation as resolved.
Show resolved
Hide resolved
|
||
./scripts/mergeModels.sh release | ||
./scripts/generatePackageSwift.swift > Package.swift | ||
cat Package.swift | ||
./gradlew --stop | ||
swift build --build-tests | ||
swift test --skip-build |
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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this is worrying, we must root cause what is being generated/added that causes us to remove the dir.