Skip to content

Commit

Permalink
Merge branch 'mainline' into rishav-exampleReadme
Browse files Browse the repository at this point in the history
  • Loading branch information
texastony authored Jan 22, 2025
2 parents 578a644 + 714e177 commit 005f2f6
Show file tree
Hide file tree
Showing 131 changed files with 20,570 additions and 1,029 deletions.
6 changes: 6 additions & 0 deletions .github/actions/polymorph_codegen/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,12 @@ runs:
# run: |
# make polymorph_rust ${{ steps.dependencies.outputs.PROJECT_DEPENDENCIES }}

- name: Regenerate Go code using smithy-dafny
working-directory: ./${{ inputs.library }}
shell: bash
run: |
make polymorph_go
- name: Check regenerated code against commited code
# Composite action inputs seem to not actually support booleans properly for some reason
if: inputs.diff-generated-code == 'true'
Expand Down
10 changes: 10 additions & 0 deletions .github/workflows/library_codegen.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
# Note dotnet is only used for formatting generated code
# in this workflow
dotnet-version: ["6.0.x"]
go-version: [1.23]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
defaults:
Expand Down Expand Up @@ -61,6 +62,15 @@ jobs:
- name: Install Smithy-Dafny codegen dependencies
uses: ./.github/actions/install_smithy_dafny_codegen_dependencies

- name: Install Go
uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Install Go imports
run: |
go install golang.org/x/tools/cmd/goimports@latest
- uses: ./.github/actions/polymorph_codegen
with:
dafny: ${{ env.DAFNY_VERSION }}
Expand Down
12 changes: 6 additions & 6 deletions AwsEncryptionSDK/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -66,14 +66,14 @@ SERVICE_DEPS_AwsEncryptionSdk := \
mpl/AwsCryptographicMaterialProviders/dafny/AwsCryptographicMaterialProviders \
mpl/AwsCryptographicMaterialProviders/dafny/AwsCryptographyKeyStore

GO_MODULE_NAME="github.com/aws/aws-encryption-sdk"
GO_MODULE_NAME="github.com/aws/aws-encryption-sdk/releases/go/encryption-sdk"

GO_DEPENDENCY_MODULE_NAMES := \
--dependency-library-name=com.amazonaws.dynamodb=github.com/aws/aws-cryptographic-material-providers-library/dynamodb \
--dependency-library-name=com.amazonaws.kms=github.com/aws/aws-cryptographic-material-providers-library/kms \
--dependency-library-name=aws.cryptography.keyStore=github.com/aws/aws-cryptographic-material-providers-library/mpl \
--dependency-library-name=aws.cryptography.primitives=github.com/aws/aws-cryptographic-material-providers-library/primitives \
--dependency-library-name=aws.cryptography.materialProviders=github.com/aws/aws-cryptographic-material-providers-library/mpl \
--dependency-library-name=com.amazonaws.dynamodb=github.com/aws/aws-cryptographic-material-providers-library/releases/go/dynamodb \
--dependency-library-name=com.amazonaws.kms=github.com/aws/aws-cryptographic-material-providers-library/releases/go/kms \
--dependency-library-name=aws.cryptography.keyStore=github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl \
--dependency-library-name=aws.cryptography.primitives=github.com/aws/aws-cryptographic-material-providers-library/releases/go/primitives \
--dependency-library-name=aws.cryptography.materialProviders=github.com/aws/aws-cryptographic-material-providers-library/releases/go/mpl \
--dependency-library-name=sdk.com.amazonaws.dynamodb=github.com/aws/aws-sdk-go-v2/service/dynamodb \
--dependency-library-name=sdk.com.amazonaws.kms=github.com/aws/aws-sdk-go-v2/service/kms

Expand Down
2 changes: 1 addition & 1 deletion AwsEncryptionSDK/codebuild/release/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ phases:
- unzip -qq dafny.zip && rm dafny.zip
- export PATH="$PWD/dafny:$PATH"
# Switch back to the main directory
- cd aws-encryption-sdk-dafny/AwsEncryptionSDK
- cd aws-encryption-sdk/AwsEncryptionSDK
pre_build:
commands:
# UNIQUE_ID should be passed in as an environment variable. It is used to tie
Expand Down
2 changes: 1 addition & 1 deletion AwsEncryptionSDK/codebuild/release/release-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ phases:
- sudo apt update
- sudo apt-get install mono-devel -y
# Switch back to the main directory
- cd aws-encryption-sdk-dafny/AwsEncryptionSDK
- cd aws-encryption-sdk/AwsEncryptionSDK
pre_build:
commands:
# UNIQUE_ID should be passed in as an environment variable. It is used to tie
Expand Down
2 changes: 1 addition & 1 deletion AwsEncryptionSDK/codebuild/release/sign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ phases:
- unzip -qq dafny.zip && rm dafny.zip
- export PATH="$PWD/dafny:$PATH"
# Switch back to the main directory
- cd aws-encryption-sdk-dafny
- cd aws-encryption-sdk
pre_build:
commands:
# UNIQUE_ID should be passed in as an environment variable. It is used to tie
Expand Down
2 changes: 1 addition & 1 deletion AwsEncryptionSDK/codebuild/release/test-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ phases:
- sudo apt update
- sudo apt-get install mono-devel -y
# Switch back to the main directory
- cd aws-encryption-sdk-dafny/AwsEncryptionSDK
- cd aws-encryption-sdk/AwsEncryptionSDK
pre_build:
commands:
- make transpile_net
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 005f2f6

Please sign in to comment.