Skip to content

Commit

Permalink
Use a rustv1 directory from aws-doc-sdk-examples (#3287)
Browse files Browse the repository at this point in the history
## Motivation and Context
This PR is a cleanup after
#3115, fully switching to
`rustv1` for the rust example directory in
[aws-doc-sdk-examples](https://github.com/awsdocs/aws-doc-sdk-examples).

----

_By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice._
  • Loading branch information
ysaito1001 authored Dec 6, 2023
1 parent 48d1c55 commit 1c44577
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 9 deletions.
1 change: 0 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ jobs:
with:
repository: awsdocs/aws-doc-sdk-examples
path: aws-doc-sdk-examples
ref: rust-launch
- name: Run ${{ matrix.actions.action }}
uses: ./smithy-rs/.github/actions/docker-build
with:
Expand Down
4 changes: 2 additions & 2 deletions tools/ci-build/sdk-versioner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ Example updating SDK examples to use SDK version 0.5.0 with Smithy version 0.35.
$ sdk-versioner \
--sdk-version 0.5.0 \
--smithy-version 0.35.0 \
path/to/aws-doc-sdk-examples/rust
path/to/aws-doc-sdk-examples/rustv1
```

Example updating SDK examples to refer to local generated code:
```bash
$ sdk-versioner \
--sdk-path path/to/smithy-rs/aws/sdk/build/aws-sdk/sdk \
path/to/aws-doc-sdk-examples/rust
path/to/aws-doc-sdk-examples/rustv1
```
7 changes: 1 addition & 6 deletions tools/ci-scripts/generate-aws-sdk
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,7 @@ fi

echo -e "${C_YELLOW}Taking examples from 'awsdocs/aws-doc-sdk-examples'...${C_RESET}"
examples_revision=$(cd aws-doc-sdk-examples; git rev-parse HEAD)
# TODO(removeSdkExamplesDevPreview): One release after `rust_dev_preview` is renamed to `rust`, this check can be cleaned up
if [[ -d "aws-doc-sdk-examples/rust" ]]; then
mv aws-doc-sdk-examples/rust smithy-rs/aws/sdk/examples
else
mv aws-doc-sdk-examples/rust_dev_preview smithy-rs/aws/sdk/examples
fi
mv aws-doc-sdk-examples/rustv1 smithy-rs/aws/sdk/examples
rm -rf smithy-rs/aws/sdk/examples/.cargo

echo -e "${C_YELLOW}Creating empty model metadata file since we don't have model update information...${C_RESET}"
Expand Down

0 comments on commit 1c44577

Please sign in to comment.