Skip to content

Make tests actually work #12

Make tests actually work

Make tests actually work #12

Workflow file for this run

name: tests
on: [push]
jobs:
docker:
strategy:
fail-fast: false
matrix:
os: [centos7, ubuntu_18.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 && trap 'result=1' ERR && ./regression && cat results/diffs && exit $result"
macos:
runs-on: [macos-14]
timeout-minutes: 5
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- run: brew bundle
- run: |
cmake -S . -B build
cd build
make
sudo make install
- run: |
cd test
trap 'result=1' ERR
./regression || {
[ -f results/diffs ] && cat results/diffs
}
exit $result