-
Notifications
You must be signed in to change notification settings - Fork 182
CI/CD improvements #1250
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
+127
−7
Merged
CI/CD improvements #1250
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
c3218df
add workflow using builder
azkrishpy e2bed92
add changes to ensure ABI break
azkrishpy 7799c35
Merge branch 'main' into abi-check
azkrishpy c0bfe67
undo breaking changes
azkrishpy 002c22a
add an enum
azkrishpy 2fb9aec
change wrong enum to add
azkrishpy 5da0760
enum break test
azkrishpy 10d1948
add permission to write on PR
azkrishpy 2db3676
undo previous breaks
azkrishpy 4afd8df
Merge branch 'main' into abi-check
azkrishpy 54dba08
cmake helper for finding version (#1262)
azkrishpy 9d26877
Add release workflow and VERSION file for automated version bumps
azkrishpy 78a1953
version number bump
azkrishpy a01d447
update branch for check-abi
azkrishpy 634483e
update branch for release
azkrishpy 5e0af42
change pointer and use CMake version finder
azkrishpy c0f826e
add workflow to prevent merging to main
azkrishpy 559e5fd
add permission
azkrishpy 125ab96
switch to latest
azkrishpy b9fdbfa
change trigger for needs-review
azkrishpy 14a977b
remove old comment
azkrishpy 4b5cca4
define version correctly on cmakelists
azkrishpy de1d41e
minor reorg of included cmake helpers
azkrishpy 4fa98ee
move conditional check back
azkrishpy 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 hidden or 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,12 @@ | ||
| name: Block needs-review merges | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened, labeled, unlabeled] | ||
|
|
||
| permissions: | ||
| pull-requests: read | ||
|
|
||
| jobs: | ||
| gate: | ||
| uses: awslabs/aws-crt-builder/.github/workflows/block-needs-review-label.yml@main | ||
This file contains hidden or 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,41 @@ | ||
| name: Check ABI compliance | ||
|
|
||
| on: | ||
| pull_request: | ||
| types: [opened, synchronize, reopened] | ||
|
|
||
| concurrency: | ||
| group: check-abi-${{ github.event.pull_request.number }} | ||
| cancel-in-progress: true | ||
|
|
||
| env: | ||
| PACKAGE_NAME: aws-c-common | ||
| CRT_CI_ROLE: ${{ secrets.CRT_CI_ROLE_ARN }} | ||
| AWS_DEFAULT_REGION: us-east-1 | ||
|
|
||
| permissions: | ||
| id-token: write | ||
| contents: read | ||
| pull-requests: write | ||
|
|
||
| jobs: | ||
| check-abi: | ||
| name: check-abi | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: aws-actions/configure-aws-credentials@v4 | ||
| with: | ||
| role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
| aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
|
|
||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Check ABI | ||
| uses: awslabs/aws-crt-builder/.github/actions/check-abi@main | ||
| with: | ||
| lib-name: ${{ env.PACKAGE_NAME }} | ||
| builder-version: latest | ||
| builder-source: releases |
This file contains hidden or 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,40 @@ | ||
| name: Release | ||
|
|
||
| on: | ||
| workflow_dispatch: | ||
| inputs: | ||
| dry-run: | ||
| description: 'Compute and summarize the bump/version but do not commit, tag, or publish anything.' | ||
| required: false | ||
| default: 'false' | ||
|
|
||
| env: | ||
| PACKAGE_NAME: aws-c-common | ||
| CRT_CI_ROLE: ${{ secrets.CRT_CI_ROLE_ARN }} | ||
| AWS_DEFAULT_REGION: us-east-1 | ||
|
|
||
| permissions: | ||
| id-token: write | ||
| contents: write | ||
| pull-requests: read | ||
|
|
||
| jobs: | ||
| release: | ||
| name: release | ||
| runs-on: ubuntu-24.04 | ||
| steps: | ||
| - uses: aws-actions/configure-aws-credentials@v4 | ||
| with: | ||
| role-to-assume: ${{ env.CRT_CI_ROLE }} | ||
| aws-region: ${{ env.AWS_DEFAULT_REGION }} | ||
|
|
||
| - name: Checkout | ||
| uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Release | ||
| uses: awslabs/aws-crt-builder/.github/actions/auto-release@main | ||
| with: | ||
| lib-name: ${{ env.PACKAGE_NAME }} | ||
| dry-run: ${{ inputs.dry-run }} |
This file contains hidden or 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 hidden or 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 @@ | ||
| 0.14.4 |
This file contains hidden or 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,13 @@ | ||
| # Reads VERSION file (format: MAJOR.MINOR.PATCH) and derives: | ||
| # var_version_simple - "MAJOR.MINOR.PATCH" | ||
| # var_version_soname - "MAJOR.MINOR" (for use as SOVERSION) | ||
| function(aws_get_version var_version_simple var_version_soname) | ||
| file(READ "${CMAKE_CURRENT_SOURCE_DIR}/VERSION" version_simple) | ||
| string(STRIP "${version_simple}" version_simple) | ||
| set(${var_version_simple} ${version_simple} PARENT_SCOPE) | ||
|
|
||
| string(REPLACE "." ";" version_list ${version_simple}) | ||
| list(GET version_list 0 version_major) | ||
| list(GET version_list 1 version_minor) | ||
| set(${var_version_soname} "${version_major}.${version_minor}" PARENT_SCOPE) | ||
| endfunction() |
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.