From d0279a3981aa1ca476186f5306391d253923b4fd Mon Sep 17 00:00:00 2001 From: Daniel Hwang Date: Sat, 7 Sep 2024 15:52:50 -0700 Subject: [PATCH] build and runtests on each Dockerfile.* --- .github/workflows/tests.yaml | 21 +++++++++++++++++++++ .gitignore | 2 ++ 2 files changed, 23 insertions(+) create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 00000000..aa508dd5 --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,21 @@ +name: tests +on: [push] + +jobs: + tests: + 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 /OpenSTA/test/regression --tty --rm sta-${{ matrix.os }} diff --git a/.gitignore b/.gitignore index 2013c841..1a49b6d8 100644 --- a/.gitignore +++ b/.gitignore @@ -30,3 +30,5 @@ doc/._Sta.docx test/results # ngspice turd test/b3v3_1check.log + +Dockerfile