-
Notifications
You must be signed in to change notification settings - Fork 5
35 lines (33 loc) · 1016 Bytes
/
rtl.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
name: Run test suite
on:
push
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install dependencies missing in act
if: ${{ env.ACT }}
run: |
sudo apt-get update
sudo apt-get install -y python3-dev
- name: Get pip cache dir
id: pip-cache
run: |
echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
echo "$HOME/.local/bin" >> $GITHUB_PATH
sudo apt-get install -y fpga-icestorm iverilog nextpnr-ice40 yosys-dev
python3 -m venv venv
venv/bin/pip install -r requirements.txt
- run: |
source venv/bin/activate
make -k test