Skip to content

Commit a3434d3

Browse files
authored
Merge pull request #8 from antmicro/bazel-build
Add Bazel BUILD
2 parents 2bf0bb0 + 31b69df commit a3434d3

File tree

7 files changed

+1624
-0
lines changed

7 files changed

+1624
-0
lines changed

.bazelrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
common --enable_workspace
2+
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build Posix Bazel
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
9+
build-posix-bazel:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Git Checkout
14+
uses: actions/checkout@v4
15+
with:
16+
submodules: recursive
17+
18+
- name: Install Linux dependencies
19+
run: |
20+
sudo apt install -y libreadline-dev
21+
wget https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64 -O bazelisk
22+
chmod +x bazelisk
23+
sudo mv bazelisk /usr/bin
24+
25+
- name: Build abc
26+
run: |
27+
bazelisk build //...
28+
29+
- name: Test Executable
30+
run: |
31+
bazel-bin/abc -c "r i10.aig; b; ps; b; rw -l; rw -lz; b; rw -lz; b; ps; cec"
32+
33+
- name: Test Library
34+
run: |
35+
bazel-bin/demo i10.aig

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,3 +63,5 @@ tags
6363
/cmake
6464
/cscope
6565
abc.history
66+
67+
bazel-*

0 commit comments

Comments
 (0)