-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Migrate CMSIS-CoreValidation to CMSIS-Toolbox build system
Co-authored-by: Martin Günther <[email protected]>
- Loading branch information
1 parent
dde5bac
commit e5dc191
Showing
241 changed files
with
27,171 additions
and
4,681 deletions.
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
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,46 @@ | ||
name: Publish CoreValidation Test Results | ||
|
||
on: | ||
workflow_run: | ||
workflows: ["CoreValidation"] | ||
branches-ignore: ["develop"] | ||
types: | ||
- completed | ||
|
||
jobs: | ||
publish-test-results: | ||
name: Publish CoreValidation Test Results | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
issues: read | ||
checks: write | ||
pull-requests: write | ||
if: | | ||
github.event.workflow_run.event == "pull_request" && | ||
github.event.workflow_run.conclusion != 'skipped' | ||
steps: | ||
- name: Download test results | ||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
run: | | ||
mkdir -p artifacts && cd artifacts | ||
artifacts_url=${{ github.event.workflow_run.artifacts_url }} | ||
gh api "$artifacts_url" -q '.artifacts[] | select(.name=="tests") | [.name, .archive_download_url] | @tsv' | while read artifact | ||
do | ||
IFS=$'\t' read name url <<< "$artifact" | ||
gh api $url > "$name.zip" | ||
unzip -d "$name" "$name.zip" | ||
done | ||
- name: Publish Test Results | ||
uses: EnricoMi/publish-unit-test-result-action@v2 | ||
with: | ||
commit: ${{ github.event.workflow_run.head_sha }} | ||
event_file: artifacts/Event File/event.json | ||
report_individual_runs: true | ||
event_name: ${{ github.event.workflow_run.event }} | ||
junit_files: "artifacts/**/*.junit" |
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,78 @@ | ||
# The repository needs to provide the following secrets | ||
# - AWS_DEFAULT_REGION The data center region to be used. | ||
# - AWS_S3_BUCKET_NAME The name of the S3 storage bucket to be used for data exchange. | ||
# - AWS_IAM_PROFILE The IAM profile to be used. | ||
# - AWS_ASSUME_ROLE The AWS access role to be assumed. | ||
# - AWS_SECURITY_GROUP_ID The id of the security group to add the EC2 instance to. | ||
# - AWS_SUBNET_ID The id of the network subnet to connect the EC2 instance to. | ||
|
||
name: CoreValidation | ||
on: | ||
push: | ||
branches: [ main ] | ||
pull_request: | ||
paths: | ||
- .github/workflows/corevalidation.yml | ||
- CMSIS/Core/**/* | ||
- CMSIS/Core_A/**/* | ||
- CMSIS/CoreValidation/**/* | ||
- Device/ARM/**/* | ||
workflow_dispatch: | ||
|
||
env: | ||
AWS_S3_BUCKET_NAME: ${{ secrets.AWS_S3_BUCKET_NAME }} | ||
AWS_IAM_PROFILE: ${{ secrets.AWS_IAM_PROFILE }} | ||
AWS_SECURITY_GROUP_ID: ${{ secrets.AWS_SECURITY_GROUP_ID }} | ||
AWS_SUBNET_ID: ${{ secrets.AWS_SUBNET_ID }} | ||
jobs: | ||
ci_test: | ||
runs-on: ubuntu-latest | ||
permissions: | ||
id-token: write | ||
contents: read | ||
outputs: | ||
avhresult: ${{ steps.avh.conclusion }} | ||
testbadge: ${{ steps.avh.outputs.badge }} | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.10' | ||
|
||
- name: Install AVH Client for Python | ||
run: | | ||
pip install git+https://github.com/ARM-software/[email protected] | ||
- uses: ammaraskar/gcc-problem-matcher@master | ||
|
||
- name: Configure AWS Credentials | ||
uses: aws-actions/configure-aws-credentials@v1 | ||
with: | ||
role-to-assume: ${{ secrets.AWS_ASSUME_ROLE }} | ||
aws-region: ${{ secrets.AWS_DEFAULT_REGION }} | ||
|
||
- name: Run tests | ||
id: avh | ||
run: | | ||
avhclient -b aws execute --specfile CMSIS/CoreValidation/Project/avh.yml | ||
- name: Archive build results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: builds | ||
path: CMSIS/CoreValidation/Project/Core_Validation-*.zip | ||
retention-days: 1 | ||
if-no-files-found: error | ||
if: always() | ||
|
||
- name: Archive test results | ||
uses: actions/upload-artifact@v2 | ||
with: | ||
name: tests | ||
path: CMSIS/CoreValidation/Project/Core_Validation-*.junit | ||
retention-days: 1 | ||
if-no-files-found: error | ||
if: always() |
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
Oops, something went wrong.