-
Notifications
You must be signed in to change notification settings - Fork 64
142 lines (114 loc) · 2.99 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
139
140
141
142
name: 'test'
on:
push:
pull_request:
schedule:
- cron: '0 0 * * 5'
workflow_dispatch:
jobs:
fomu-toolchain:
strategy:
fail-fast: false
matrix:
include:
- { icon: 🐧, os: Ubuntu }
- { icon: 🧊, os: Windows }
- { icon: 🍎, os: macOS }
runs-on: ${{ matrix.os }}-latest
name: '${{ matrix.icon}} ${{ matrix.os }} | fomu-toolchain'
defaults:
run:
shell: bash
steps:
- run: git config --global core.autocrlf input
shell: bash
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install Scala
uses: olafurpg/setup-scala@v10
with:
java-version: [email protected]
- name: Install (Ubuntu)
if: matrix.os == 'ubuntu'
run: |
curl -L https://ziglang.org/download/0.9.0/zig-linux-x86_64-0.9.0.tar.xz | tar -xJf -
echo "$(pwd)/zig-linux-x86_64-0.9.0" >> $GITHUB_PATH
- name: Install (Mac OS)
if: matrix.os == 'macos'
run: brew install zig
- name: Install (Windows)
if: matrix.os == 'windows'
run: |
choco install zig --version 0.9.0
ln -s $(which python) /usr/bin/python3
- run: python ./get-toolchain.py
env:
GH_TOKEN: ${{ github.token }}
- run: ./.github/tests.sh
all-in-one:
name: '🛳️ Container | All-in-one'
runs-on: ubuntu-latest
env:
GHDL_PLUGIN_MODULE: ghdl
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- uses: docker://gcr.io/hdl-containers/impl
with:
args: ./.github/hdl-tests.sh
fine-grained:
name: '🛳️ Container | Fine-grained'
runs-on: ubuntu-latest
env:
GHDL_PLUGIN_MODULE: ghdl
CONTAINER_ENGINE: docker
steps:
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- name: Pull container images
run: |
docker pull gcr.io/hdl-containers/ghdl/yosys
docker pull gcr.io/hdl-containers/nextpnr/ice40
docker pull gcr.io/hdl-containers/icestorm
- run: ./.github/hdl-tests.sh
msys2:
runs-on: windows-latest
strategy:
fail-fast: false
matrix:
include: [
{icon: '⬛', sys: 'mingw32'},
{icon: '🟦', sys: 'mingw64'},
{icon: '🟨', sys: 'ucrt64' },
]
name: '${{ matrix.icon }} MSYS2 | ${{ matrix.sys }}'
defaults:
run:
shell: msys2 {0}
steps:
- name: '${{ matrix.icon }} Setup MSYS2'
uses: msys2/setup-msys2@v2
with:
msystem: ${{ matrix.sys }}
update: true
install: make
pacboy: >
icestorm:p
yosys:p
nextpnr:p
- run: git config --global core.autocrlf input
shell: bash
- uses: actions/checkout@v2
with:
submodules: true
fetch-depth: 0
- run: ./.github/hdl-tests.sh