forked from The-OpenROAD-Project/OpenROAD
-
Notifications
You must be signed in to change notification settings - Fork 0
54 lines (53 loc) · 1.97 KB
/
github-actions-macos.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
name: Build on macOS
on:
# Triggers the workflow on push or pull request events
pull_request:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
inputs:
debug_enabled:
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false
jobs:
build:
runs-on: macos-11
steps:
- name: Setup xcode
uses: maxim-lobanov/setup-xcode@v1
with:
xcode-version: '12.4.0'
- name: Install lemon
run: |
wget http://lemon.cs.elte.hu/pub/sources/lemon-1.3.1.tar.gz
tar -xf lemon-1.3.1.tar.gz
cd lemon-1.3.1
cmake -B build .
cmake --build build -j --target install
- name: Install brew dependencies
run: |
brew install bison boost eigen flex git libomp pyqt5 python spdlog
brew install swig tcl-tk zlib
- name: Check out repository code
uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Build OpenROAD
run: |
export PATH="/usr/local/opt/bison/bin:$PATH"
export PATH="/usr/local/opt/flex/bin:$PATH"
export PATH="/usr/local/opt/tcl-tk/bin:$PATH"
export PKG_CONFIG_PATH="/usr/local/opt/tcl-tk/lib/pkgconfig"
export MY_QT_PATH=$(find /usr/local/Cellar/qt@5/ -type d -iwholename "*cmake/Qt5")
echo "MY_QT_PATH = $MY_QT_PATH"
mkdir build
cd build
cmake .. -D TCL_LIB_PATHS=/usr/local/opt/tcl-tk/lib \
-D TCL_NO_DEFAULT_PATH=TRUE \
-D Qt5_DIR=${MY_QT_PATH}
make -j
# Enable tmate debugging of manually-triggered workflows
# if the input option was provided
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}