forked from ARM-software/CMSIS-RTOS2_Validation
-
Notifications
You must be signed in to change notification settings - Fork 0
79 lines (69 loc) · 2.33 KB
/
cmsis_rv2.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# The repository needs to provide the following secrets
# - AWS_DEFAULT_REGION The data center region to be used.
# - AWS_S3_BUCKET_NAME The id of the S3 storage bucket to be used to data exchange.
# - AWS_IAM_PROFILE The IAM profile to be used.
# - 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: CMSIS-RTOS2 Validation running on Arm Virtual Hardware
on:
push:
branches: [ main ]
paths:
- .github/workflows/cmsis_rv2.yml
- Include/**/*
- Project/**/*
- Source/**/*
pull_request:
paths:
- .github/workflows/cmsis_rv2.yml
- Include/**/*
- Project/**/*
- Source/**/*
workflow_dispatch:
env:
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
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
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: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::720528183931:role/Proj-vht-assume-role
aws-region: ${{ env.AWS_DEFAULT_REGION }}
- name: Install AVH Client for Python
run: |
pip install git+https://github.com/ARM-software/[email protected]
- uses: ammaraskar/gcc-problem-matcher@master
- name: Run tests
run: |
avhclient -b aws execute --specfile Project/avh.yml
- name: Archive results
uses: actions/upload-artifact@v2
with:
name: results
path: |
Project/RTOS2_Validation-*.zip
Project/RTOS2_Validation-*.junit
retention-days: 1
if-no-files-found: error
if: always()
- name: Publish test results
uses: mikepenz/action-junit-report@v3
with:
check_name: "Test results"
report_paths: Project/RTOS2_Validation-*.junit
if: always()