forked from OSVVM/OsvvmLibraries
-
Notifications
You must be signed in to change notification settings - Fork 0
134 lines (113 loc) · 3.36 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
name: Test
on:
push:
pull_request:
workflow_dispatch:
schedule:
- cron: '0 15 * * *'
jobs:
lin:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
backend:
- mcode
- llvm
# - gcc
name: '🐧 Ubuntu · ${{ matrix.backend }}'
steps:
- name: '🧰 Checkout'
uses: actions/checkout@v3
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@v3
with:
name: ubuntu-ghdl-${{ matrix.backend }}-log
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: 'MINGW32', pkg: "llvm" } ! Not yet functional
- {icon: '🟦', msys: 'MINGW64', pkg: 'llvm' }
- {icon: '🟨', msys: 'UCRT64', pkg: 'llvm' } #! Experimental
- {icon: '🟪', msys: 'MINGW32', pkg: 'mcode' }
#- {icon: '🟦', msys: 'MINGW64', pkg: "mcode" } ! Simulation with mcode is not yet supported on win64
#- {icon: '🟨', msys: 'UCRT64', pkg: "mcode" } ! Experimental; Simulation with mcode is not yet supported on win64
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@v3
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@v3
with:
name: msys2-ghdl-${{ matrix.pkg }}-${{ matrix.msys }}-log
path: |
*.log
*.yml
*.html
*.xml
reports/*.html
reports/**/*.html
logs/**/*.*
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@v3
- name: '📥 Download artifact: package'
uses: actions/download-artifact@v3
with:
path: artifacts
- name: 📊 Publish Unit Test Results
uses: dorny/test-reporter@v1
with:
name: OSVVM VC Regression Results
path: artifacts/**/*.xml
reporter: java-junit