-
Notifications
You must be signed in to change notification settings - Fork 8
88 lines (73 loc) · 2.03 KB
/
ci.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
on:
workflow_dispatch:
pull_request:
schedule:
- cron: '0 8 * * *'
name: 'CI'
defaults:
run:
shell: bash
env:
REGISTRY: ghcr.io
jobs:
docker_image:
uses: siliconcompiler/siliconcompiler/.github/workflows/docker_image.yml@main
with:
tool: 'tools'
flat:
name: 'flat'
needs: docker_image
timeout-minutes: 180
runs-on: ubuntu-latest
container:
image: ${{ needs.docker_image.outputs.sc_tool }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: siliconcompiler/siliconcompiler
path: siliconcompiler
- run: apt install python3-venv
- name: Run test
run: |
python3 -m venv ./clean_env --clear
source ./clean_env/bin/activate
echo $VIRTUAL_ENV
pip3 install -r python-requirements.txt
pip3 install ./siliconcompiler
./make.py --top-flat
- name: Upload image artifacts
uses: actions/upload-artifact@v4
with:
name: flat
path: build/zerosoc/job0/zerosoc.png
hierarchical:
name: 'hierarchical'
needs: docker_image
timeout-minutes: 180
runs-on: ubuntu-latest
container:
image: ${{ needs.docker_image.outputs.sc_tool }}
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: siliconcompiler/siliconcompiler
path: siliconcompiler
- run: apt install python3-venv
- name: Run test
run: |
python3 -m venv ./clean_env --clear
source ./clean_env/bin/activate
echo $VIRTUAL_ENV
pip3 install -r python-requirements.txt
pip3 install ./siliconcompiler
./make.py --core-only
./make.py --top-only
- name: Upload image artifacts
uses: actions/upload-artifact@v4
with:
name: hierarchical
path: |
build/zerosoc_core/job0/zerosoc_core.png
build/zerosoc_top/job0/zerosoc_top.png