-
Notifications
You must be signed in to change notification settings - Fork 3
91 lines (76 loc) · 2.25 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
name: Test
on:
pull_request:
push:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'
jobs:
ubuntu:
strategy:
fail-fast: false
matrix:
backend: [ '', mcode, llvm, gcc ]
version: [ 20.04, 22.04, latest ]
runs-on: ubuntu-${{ matrix.version }}
name: '🐧 Ubuntu ${{ matrix.version }} · ${{ matrix.backend }}'
steps:
- name: '🧰 Checkout'
uses: actions/checkout@v4
- name: Run Action
uses: ./
with:
backend: ${{ matrix.backend }}
- name: Test
run: |
echo "GHDL_PREFIX: $GHDL_PREFIX"
echo "GHDL: $GHDL"
echo "GHDL_LIBS: $GHDL_LIBS"
ghdl --version
$GHDL --version
windows:
strategy:
fail-fast: false
matrix:
sys:
#- { icon: '🟪', msys: MINGW32, backend: llvm } ! not yet functional
- { icon: '🟦', msys: MINGW64, backend: llvm }
- { icon: '🟨', msys: UCRT64, backend: llvm }
- { icon: '🟪', msys: MINGW32, backend: mcode }
- { icon: '🟦', msys: MINGW64, backend: mcode }
- { icon: '🟨', msys: UCRT64, backend: mcode }
version: [ 2019, 2022, latest ]
runs-on: windows-${{ matrix.version }}
name: '${{ matrix.sys.icon }} ${{ matrix.sys.msys }} ${{ matrix.version }} · ${{ matrix.sys.backend }}'
steps:
- name: '🧰 Checkout'
uses: actions/checkout@v4
- name: '${{ matrix.sys.icon }} Setup MSYS2'
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.sys.msys }}
update: true
- name: Run Action
uses: ./
with:
backend: ${{ matrix.sys.backend }}
- name: Test MSYS2
shell: msys2 {0}
run: |
echo "MSYS2_PATH: $MSYS2_PATH"
echo "GHDL_PREFIX: $GHDL_PREFIX"
echo "GHDL: $GHDL"
ghdl --version
$GHDL --version
- name: Test gitforwindows
shell: bash
run: |
echo "MSYS2_PATH: $MSYS2_PATH"
"$MSYS2_PATH"${{ matrix.sys.msys }}\\bin\\ghdl.exe --version
$GHDL --version
- name: Test powershell
shell: powershell
run: |
echo "MSYS2_PATH: $env:MSYS2_PATH"
& "$($env:MSYS2_PATH)${{ matrix.sys.msys }}\bin\ghdl.exe" --version
& "$env:GHDL" --version