2021-03-16 22:37:42 +08:00
|
|
|
name: FPGA interchange CI tests
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2021-03-24 18:11:29 +08:00
|
|
|
Run-Tests:
|
2021-03-16 22:37:42 +08:00
|
|
|
runs-on: ubuntu-latest
|
2021-03-24 18:11:29 +08:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
device: [xc7a35t, xc7a100t, xc7a200t, xc7z010]
|
2021-03-16 22:37:42 +08:00
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
|
|
|
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
|
|
|
|
- name: Install
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt-get install git make cmake libboost-all-dev python3-dev libeigen3-dev tcl-dev clang bison flex swig
|
|
|
|
|
2021-03-24 18:11:29 +08:00
|
|
|
- name: Execute build interchange script
|
2021-03-16 22:37:42 +08:00
|
|
|
run: stdbuf -i0 -o0 -e0 ./.github/ci/build_interchange.sh
|
|
|
|
|
2021-03-17 04:49:06 +08:00
|
|
|
- name: Run tests
|
2021-03-24 18:11:29 +08:00
|
|
|
env:
|
|
|
|
DEVICE: ${{ matrix.device }}
|
2021-03-16 22:37:42 +08:00
|
|
|
run: |
|
2021-03-17 04:49:06 +08:00
|
|
|
cd build
|
2021-03-24 18:11:29 +08:00
|
|
|
make chipdb-$DEVICE-bin-check-test-data
|
|
|
|
make chipdb-$DEVICE-bin-check
|
|
|
|
make all-$DEVICE-tests -j`nproc`
|