mirror of
https://github.com/The-OpenROAD-Project/abc.git
synced 2026-03-12 11:26:17 +08:00
Adapted from: - https://github.com/hdl/bazel_rules_hdl/tree/main/dependency_support/edu_berkeley_abc - https://github.com/the-OpenROAD-Project/OpenROAD Signed-off-by: Krzysztof Bieganski <kbieganski@antmicro.com>
36 lines
749 B
YAML
36 lines
749 B
YAML
name: Build Posix Bazel
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
|
|
build-posix-bazel:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Git Checkout
|
|
uses: actions/checkout@v4
|
|
with:
|
|
submodules: recursive
|
|
|
|
- name: Install Linux dependencies
|
|
run: |
|
|
sudo apt install -y libreadline-dev
|
|
wget https://github.com/bazelbuild/bazelisk/releases/latest/download/bazelisk-linux-amd64 -O bazelisk
|
|
chmod +x bazelisk
|
|
sudo mv bazelisk /usr/bin
|
|
|
|
- name: Build abc
|
|
run: |
|
|
bazelisk build //...
|
|
|
|
- name: Test Executable
|
|
run: |
|
|
bazel-bin/abc -c "r i10.aig; b; ps; b; rw -l; rw -lz; b; rw -lz; b; ps; cec"
|
|
|
|
- name: Test Library
|
|
run: |
|
|
bazel-bin/demo i10.aig
|