forked from OSVVM/OsvvmLibraries
-
Notifications
You must be signed in to change notification settings - Fork 0
138 lines (118 loc) · 3.33 KB
/
Test.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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
name: OsvvmRegressionOnGHDL
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 15 * * *'
jobs:
lin:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
backend:
- mcode
- llvm
name: '🐧 Ubuntu · ${{ matrix.backend }}'
steps:
- name: '🧰 Checkout'
uses: actions/checkout@v4
with:
path: OsvvmLibraries
submodules: recursive
- name: '⚙️ Setup GHDL'
uses: ghdl/setup-ghdl-ci@master
with:
backend: ${{ matrix.backend }}
- name: '🛠️ Install tcl'
run: |
sudo apt update -qq
sudo apt install -y tcl tcllib
- name: '🚧 Run tests'
run: tclsh ./OsvvmLibraries/.github/test.tcl
- name: '📤 Upload artifact: logs'
uses: actions/upload-artifact@v4
with:
name: log-ubuntu-ghdl-${{ matrix.backend }}
include-hidden-files: true
path: |
*.log
*.yml
*.html
*.xml
reports/*.html
reports/**/*.html
logs/**/*.*
if-no-files-found: error
win:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include:
# - {icon: '🟦', msys: 'MINGW64', pkg: 'llvm' }
- {icon: '🟨', msys: 'UCRT64', pkg: 'llvm' }
# - {icon: '🟦', msys: 'MINGW64', pkg: 'mcode' }
- {icon: '🟨', msys: 'UCRT64', pkg: 'mcode' }
name: '${{ matrix.icon }} ${{ matrix.msys }} · ${{ matrix.pkg }}'
defaults:
run:
shell: msys2 {0}
steps:
- name: '${{ matrix.icon }} Setup MSYS2'
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.msys }}
update: true
install: git
pacboy: tcl:p tcllib:p make:p python3:p
- name: '🧰 Checkout'
uses: actions/checkout@v4
with:
path: OsvvmLibraries
submodules: recursive
- name: '⚙️ Setup GHDL'
uses: ghdl/setup-ghdl-ci@master
with:
backend: ${{ matrix.pkg }}
- name: '🚧 Run tests'
run: tclsh ./OsvvmLibraries/.github/test.tcl
- name: '📤 Upload artifact: logs'
uses: actions/upload-artifact@v4
with:
name: log-msys2-ghdl-${{ matrix.pkg }}-${{ matrix.msys }}
include-hidden-files: true
path: |
*.log
*.yml
*.html
*.xml
reports/*.html
reports/**/*.html
logs/**/*.*
reports/*.css
reports/osvvm.png
if-no-files-found: error
publish-test-results:
if: always()
needs: [lin, win]
runs-on: ubuntu-latest
name: 📊 Publish Unit Tests Results
steps:
- name: ⏬ Checkout repository
uses: actions/checkout@v4
- name: '📥 Download artifact: package'
uses: actions/download-artifact@v4
with:
path: artifacts
pattern: log-*
- run: ls artifacts
- name: 📊 Publish Unit Test Results
uses: dorny/test-reporter@v1
with:
name: OSVVM VC Regression Results
path: artifacts/**/*.xml
reporter: java-junit
list-suites: all
list-tests: failed