-
Notifications
You must be signed in to change notification settings - Fork 25
88 lines (75 loc) · 1.93 KB
/
checkinstall.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
name: checkinstall
on:
# weekly
schedule:
- cron: '0 0 * * FRI'
# and also manually
workflow_dispatch:
# and whenever key files/submodules change
push:
branches:
- release
- dev
paths:
- envscr/install
- vtr
- yosys
pull_request:
branches:
- release
- dev
paths:
- envscr/install
- vtr
- yosys
jobs:
install:
runs-on: ubuntu-latest
steps:
- name: Checkout PRGA
uses: actions/checkout@v2
# ========================================================
# == Restore iverilog from cache, or build from scratch ==
# ========================================================
- name: Cache iverilog
id: cache-ivl
uses: actions/cache@v2
with:
path: iverilog
key: iverilog
- name: Checkout iverilog
uses: actions/checkout@v2
if: ${{ ! steps.cache-ivl.outputs.cache-hit }}
with:
repository: steveicarus/iverilog
path: iverilog
- name: Compile iverilog
if: ${{ ! steps.cache-ivl.outputs.cache-hit }}
run: |
sudo apt-get install gperf autoconf
pushd iverilog
sh autoconf.sh
./configure --prefix=${GITHUB_WORKSPACE}/local
make -j8
popd
- name: Install iverilog
run: |
pushd iverilog
make install
popd
# ==================
# == Install PRGA ==
# ==================
- name: Install PRGA dependencies
run: sudo apt-get install tcl8.6-dev
- name: Install PRGA
run: bash envscr/install
# =======================
# == Run a quick check ==
# =======================
- name: Run a quick check
uses: ./.github/actions/run_example
with:
fpga_path: magic/k4_N2_8x8
app_path: bcd2bin/magic_k4_N2_8x8
test: basic