Skip to content

Commit

Permalink
ci: use .NET 6.0 for release buildspecs (#602)
Browse files Browse the repository at this point in the history
  • Loading branch information
alex-chew authored Sep 1, 2022
1 parent 65cc9a1 commit 9fa72fe
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 10 deletions.
6 changes: 3 additions & 3 deletions aws-encryption-sdk-net/codebuild/release/release-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:
phases:
install:
runtime-versions:
dotnet: 5.0
dotnet: 6.0
python: 3.x
commands:
- cd ..
Expand Down Expand Up @@ -50,8 +50,8 @@ phases:
# Now validate we can run examples
- sed -i.backup '/Source\/AWSEncryptionSDK.csproj/d' Examples/AWSEncryptionSDKExamples.csproj
- dotnet add Examples/AWSEncryptionSDKExamples.csproj package AWS.EncryptionSDK --version $VERSION
# Target only netcoreapp3.1, because we only support net452 for windows.
# Run examples for just one supported version.
# Since all frameworks and OS's are tested on commit, we mainly want to
# run this as a smoke test and the confirm we can find the dependency,
# rather than a comprehensive test suite.
- dotnet test Examples -f netcoreapp3.1
- dotnet test Examples -f net6.0
6 changes: 3 additions & 3 deletions aws-encryption-sdk-net/codebuild/release/release-staging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ env:
phases:
install:
runtime-versions:
dotnet: 5.0
dotnet: 6.0
python: 3.x
commands:
- cd ..
Expand Down Expand Up @@ -59,11 +59,11 @@ phases:
# Now validate we can run examples
- sed -i.backup '/Source\/AWSEncryptionSDK.csproj/d' Examples/AWSEncryptionSDKExamples.csproj
- dotnet add Examples/AWSEncryptionSDKExamples.csproj package AWS.EncryptionSDK --version $UNIQUE_VERSION
# Target only netcoreapp3.1, because we only support net452 for windows.
# Run examples for just one supported version.
# Since all frameworks and OS's are tested on commit, we mainly want to
# run this as a smoke test and the confirm we can find the dependency,
# rather than a comprehensive test suite.
- dotnet test Examples -f netcoreapp3.1
- dotnet test Examples -f net6.0
post_build:
commands:
- >-
Expand Down
13 changes: 11 additions & 2 deletions aws-encryption-sdk-net/codebuild/release/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,28 @@ batch:
build-graph:
- identifier: sign
buildspec: aws-encryption-sdk-net/codebuild/release/sign.yml
- identifier: verify
env:
type: LINUX_CONTAINER
image: aws/codebuild/standard:6.0
- identifier: verify
buildspec: aws-encryption-sdk-net/codebuild/release/verify.yml
env:
type: WINDOWS_SERVER_2019_CONTAINER
image: aws/codebuild/windows-base:2019-1.0
image: aws/codebuild/windows-base:2019-2.0
depend-on:
- sign
- identifier: release_staging
buildspec: aws-encryption-sdk-net/codebuild/release/release-staging.yml
env:
type: LINUX_CONTAINER
image: aws/codebuild/standard:6.0
depend-on:
- sign
- identifier: release_prod
buildspec: aws-encryption-sdk-net/codebuild/release/release-prod.yml
env:
type: LINUX_CONTAINER
image: aws/codebuild/standard:6.0
depend-on:
- verify
- release_staging
2 changes: 1 addition & 1 deletion aws-encryption-sdk-net/codebuild/release/sign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ version: 0.2
phases:
install:
runtime-versions:
dotnet: 5.0
dotnet: 6.0
python: 3.x
commands:
- cd ..
Expand Down
2 changes: 1 addition & 1 deletion aws-encryption-sdk-net/codebuild/release/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ env:
phases:
install:
runtime-versions:
dotnet: 5.0
dotnet: 6.0
python: 3.x
build:
commands:
Expand Down
1 change: 1 addition & 0 deletions codebuild/dotnet/generate-test-vectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ env:
phases:
install:
runtime-versions:
# TODO update to .NET 6.0
dotnet: 5.0
nodejs: 14
commands:
Expand Down
1 change: 1 addition & 0 deletions codebuild/dotnet/test-vectors.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: 0.2
phases:
install:
runtime-versions:
# TODO update to .NET 6.0
dotnet: 5.0
commands:
- cd ..
Expand Down
1 change: 1 addition & 0 deletions codebuild/dotnet/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ version: 0.2
phases:
install:
runtime-versions:
# TODO update to .NET 6.0
dotnet: 5.0
commands:
- cd ..
Expand Down

0 comments on commit 9fa72fe

Please sign in to comment.