forked from parallaxsw/OpenSTA
-
Notifications
You must be signed in to change notification settings - Fork 1
42 lines (40 loc) · 1.32 KB
/
tests.yaml
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
name: tests
on: [push]
jobs:
linux-docker:
strategy:
fail-fast: false
matrix:
os: [centos7, ubuntu_22.04]
runs-on: [ubuntu-24.04]
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- run: |
cp Dockerfile.${{ matrix.os }} Dockerfile
docker build --tag sta-${{ matrix.os }} .
- run: |
docker run --entrypoint /bin/bash --tty --rm sta-${{ matrix.os }} -c "cd /OpenSTA/test && ./regression || (cat results/diffs && exit 1)"
macos:
runs-on: [macos-14]
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- run: brew bundle
- run: |
eval "$(/opt/homebrew/bin/brew shellenv)"
export PATH="$(brew --prefix flex)/bin:$PATH"
export PATH="$(brew --prefix bison)/bin:$PATH"
export TCL_LIBRARY="$(brew --prefix tcl-tk@8)/lib/libtcl8.6.dylib"
export TCL_INCLUDE_PATH="$(brew --prefix tcl-tk@8)/include/tcl-tk"
cmake -S . -B build -D TCL_LIBRARY=$TCL_LIBRARY \
-D TCL_INCLUDE_PATH=$TCL_INCLUDE_PATH
cd build
make -j`sysctl -n hw.ncpu`
- run: |
cd test
./regression || (cat results/diffs && exit 1)