forked from The-OpenROAD-Project/megaboom
-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (97 loc) · 2.59 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
89
90
91
92
93
94
95
96
97
98
99
100
name: Megaboom build tests
on:
workflow_dispatch:
push:
pull_request:
jobs:
build-stage-target:
name: Build sample stage targets
runs-on: ubuntu-22.04
container:
image: ghcr.io/antmicro/megaboom:latest
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
TARGET: ["tag_array_64x184_generate_abstract", "L1MetadataArray_test_generate_abstract", "regfile_128x65_floorplan"]
env:
DEBIAN_FRONTEND: "noninteractive"
steps:
- name: pre checkout info
run: |
whoami
pwd
ls -la
- name: Checkout Megaboom
uses: actions/checkout@v4
with:
path: megaboom
- name: Clone bazel-orfs
uses: actions/checkout@v4
with:
repository: antmicro/bazel-orfs
path: bazel-orfs
- name: post checkout info
run: |
whoami
pwd
ls -la
- name: query target
run: |
bazel query ${{ matrix.TARGET }}
bazel query ${{ matrix.TARGET }} --output=build
- name: build target
run: |
bazel build --subcommands --verbose_failures --sandbox_debug ${{ matrix.TARGET }}
test-local-runner-target:
name: Execute sample local_runner scripts
runs-on: ubuntu-22.04
container:
image: ghcr.io/antmicro/megaboom:latest
defaults:
run:
shell: bash
strategy:
fail-fast: false
matrix:
TARGET: ["L1MetadataArray_test_floorplan_local_runner", "L1MetadataArray_test_cts_local_runner"]
MAKE_TARGET: ["do-floorplan", "do-cts"]
env:
DEBIAN_FRONTEND: "noninteractive"
steps:
- name: pre checkout info
run: |
whoami
pwd
ls -la
- name: Checkout Megaboom
uses: actions/checkout@v4
with:
path: megaboom
- name: Clone bazel-orfs
uses: actions/checkout@v4
with:
repository: antmicro/bazel-orfs
path: bazel-orfs
- name: post checkout info
run: |
whoami
pwd
ls -la
- name: query target
run: |
bazel query ${{ matrix.TARGET }}
bazel query ${{ matrix.TARGET }} --output=build
- name: build target
run: |
bazel build --subcommands --verbose_failures --sandbox_debug ${{ matrix.TARGET }}
- name: set file permissions
run: |
cd bazel-bin
chmod -R +w .
cd ..
- name: run local_runner
run: |
./bazel-bin/${{ matrix.TARGET }} ${{ matrix.MAKE_TARGET }}