-
Notifications
You must be signed in to change notification settings - Fork 3
50 lines (40 loc) · 1.25 KB
/
basic.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
name: Compile and Run
on:
workflow_dispatch:
pull_request:
branches: [main]
push:
branches: [main]
schedule:
- cron: '30 22 * * 0'
permissions:
actions: read
security-events: write
jobs:
CI_test_run:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install system packages
run: |
sudo add-apt-repository ppa:deadsnakes/ppa
sudo apt-get install libpython3.9 libtinfo5
- name: Activate vcpkg
uses: ARM-software/cmsis-actions/vcpkg@v1
- name: Activate Arm tool license
uses: ARM-software/cmsis-actions/armlm@v1
- name: Build
run: |
echo "Building get started example ..."
cbuild get_started.csolution.yml --packs --update-rte --context .debug+avh
- name: Execute
run: |
echo "Running get started example ..."
FVP_MPS2_Cortex-M3 --simlimit 10 -f Project/fvp_config.txt -a out/Project/avh/debug/Project.axf | tee Project.avh.log
echo "Checking output..."
test "$(grep "FAIL: " Project.avh.log | wc -l)" -eq 0