2023-08-04 05:34:38 -05:00
|
|
|
|
|
|
|
name: Regression tests
|
|
|
|
on: [workflow_dispatch]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
Regression-Tests:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
submodules: true
|
|
|
|
path: coriolis-2.x/src/coriolis
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
repository: lip6/alliance
|
|
|
|
path: coriolis-2.x/src/alliance
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
repository: lip6/alliance-check-toolkit
|
|
|
|
path: coriolis-2.x/src/alliance-check-toolkit
|
2023-08-04 10:59:24 -05:00
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
repository: YosysHQ/yosys
|
|
|
|
path: coriolis-2.x/src/yosys
|
2023-08-04 11:09:54 -05:00
|
|
|
ref: yosys-0.24
|
2023-08-04 07:41:20 -05:00
|
|
|
- name: Update APT cache
|
|
|
|
run: sudo apt-get update
|
2023-08-04 05:34:38 -05:00
|
|
|
- name: Install software dependencies
|
2023-08-04 07:41:20 -05:00
|
|
|
run: >
|
2023-08-04 08:17:03 -05:00
|
|
|
sudo apt-get install libboost-all-dev rapidjson-dev \
|
2023-08-04 17:44:23 -05:00
|
|
|
python-dev-is-python3 python3-doit \
|
2023-08-04 08:17:03 -05:00
|
|
|
qtbase5-dev qtbase5-dev-tools libqt5svg5-dev libqwt-qt5-dev \
|
2023-08-04 09:45:46 -05:00
|
|
|
libeigen3-dev liblemon-dev \
|
|
|
|
autotools-dev automake \
|
2023-08-04 10:59:24 -05:00
|
|
|
libxt-dev libxpm-dev libmotif-dev \
|
|
|
|
tcl-dev libffi-dev
|
2023-08-04 11:54:40 -05:00
|
|
|
- name: ccache
|
|
|
|
uses: hendrikmuhs/ccache-action@v1.2
|
2023-08-04 10:59:24 -05:00
|
|
|
- name: Build Yosys
|
|
|
|
run: |
|
2023-08-04 11:54:40 -05:00
|
|
|
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
|
2023-08-04 10:59:24 -05:00
|
|
|
cd ${{ github.workspace }}/coriolis-2.x/src/yosys
|
|
|
|
make ENABLE_PYOSYS=1 config-gcc
|
2023-08-05 04:31:59 -05:00
|
|
|
sudo make ENABLE_PYOSYS=1 PREFIX=/usr install
|
2023-08-05 04:34:20 -05:00
|
|
|
make ENABLE_PYOSYS=1 PREFIX=/install \
|
|
|
|
PYTHON_DESTDIR=/install/lib64/python3/dist-packages \
|
|
|
|
DESTDIR=${{ github.workspace }}/coriolis-2.x/Linux.x86_64/Release.Shared \
|
|
|
|
LIBDIR=/install/lib64/yosys \
|
|
|
|
install
|
2023-08-04 09:45:46 -05:00
|
|
|
- name: Build Alliance
|
2023-08-04 11:54:40 -05:00
|
|
|
run: |
|
|
|
|
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
|
|
|
|
${{ github.workspace }}/coriolis-2.x/src/coriolis/bootstrap/allianceInstaller.sh --github-runner=${{ github.workspace }}
|
2023-08-04 05:34:38 -05:00
|
|
|
- name: Build Coriolis
|
2023-08-04 11:54:40 -05:00
|
|
|
run: |
|
|
|
|
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
|
|
|
|
${{ github.workspace }}/coriolis-2.x/src/coriolis/bootstrap/ccb.py --root=${{ github.workspace }}/coriolis-2.x --project=coriolis --make="-j4 install"
|
2023-08-04 16:34:10 -05:00
|
|
|
- name: Check for binaries
|
|
|
|
run: ls -1 ${{ github.workspace }}/coriolis-2.x/Linux.x86_64/Release.Shared/install/bin
|
|
|
|
- name: Run the reference set of designs
|
|
|
|
run: |
|
2023-08-04 18:04:52 -05:00
|
|
|
export CORIOLIS_TOP=${{ github.workspace }}/coriolis-2.x/Linux.x86_64/Release.Shared/install
|
2023-08-04 16:44:18 -05:00
|
|
|
cd ${{ github.workspace }}/coriolis-2.x/src/alliance-check-toolkit/benchs
|
2023-08-04 18:25:37 -05:00
|
|
|
../bin/crlenv.py --verbose
|
2023-08-04 17:30:18 -05:00
|
|
|
../bin/gopy.sh --github-runner
|
2023-08-05 04:27:30 -05:00
|
|
|
- name: Bundle installed tree
|
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: installed-tree
|
|
|
|
path: ${{ github.workspace }}/coriolis-2.x/Linux.x86_64/Release.Shared/install
|
|
|
|
retention-days: 1
|
|
|
|
- name: Archive test design set logs
|
2023-08-04 17:00:16 -05:00
|
|
|
uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: design-set-full-logs
|
|
|
|
path: ${{ github.workspace }}/coriolis-2.x/src/alliance-check-toolkit/benchs/doit-gopy.log
|
|
|
|
retention-days: 5
|
2023-08-04 17:30:18 -05:00
|
|
|
- name: Make the runner fail *after* the log has been saved.
|
|
|
|
run: |
|
|
|
|
if [ -f ${{ github.workspace }}/coriolis-2.x/src/alliance-check-toolkit/benchs/doit-gopy.failed ]; then
|
2023-08-04 17:31:54 -05:00
|
|
|
exit 1
|
|
|
|
fi
|