aboutsummaryrefslogtreecommitdiffstats
path: root/.github
diff options
context:
space:
mode:
authorAlessandro Comodi <acomodi@antmicro.com>2021-03-24 11:11:29 +0100
committerAlessandro Comodi <acomodi@antmicro.com>2021-03-24 15:37:03 +0100
commit9f28fa4e75e30eb8329e737081a97189b05f013e (patch)
tree57c756132c49425374d749c406cd051f27b5c7d0 /.github
parent1a774a05269f6a0718395cfb9f733242a1a82387 (diff)
downloadnextpnr-9f28fa4e75e30eb8329e737081a97189b05f013e.tar.gz
nextpnr-9f28fa4e75e30eb8329e737081a97189b05f013e.tar.bz2
nextpnr-9f28fa4e75e30eb8329e737081a97189b05f013e.zip
gh-actions: interchange: multiple jobs, one for each device
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
Diffstat (limited to '.github')
-rwxr-xr-x.github/ci/build_interchange.sh4
-rw-r--r--.github/workflows/interchange_ci.yml15
2 files changed, 12 insertions, 7 deletions
diff --git a/.github/ci/build_interchange.sh b/.github/ci/build_interchange.sh
index 591494d8..3cd77ea4 100755
--- a/.github/ci/build_interchange.sh
+++ b/.github/ci/build_interchange.sh
@@ -19,7 +19,7 @@ popd
# Install capnproto java
git clone https://github.com/capnproto/capnproto-java.git
pushd capnproto-java
-make
+make -j`nproc`
sudo make install
popd
@@ -41,8 +41,8 @@ pushd $RAPIDWRIGHT_PATH
make update_jars
popd
-
mkdir build
pushd build
cmake .. -DARCH=fpga_interchange -DRAPIDWRIGHT_PATH=$RAPIDWRIGHT_PATH -DINTERCHANGE_SCHEMA_PATH=$INTERCHANGE_SCHEMA_PATH -DPYTHON_INTERCHANGE_PATH=$PYTHON_INTERCHANGE_PATH
+make nextpnr-fpga_interchange -j`nproc`
popd
diff --git a/.github/workflows/interchange_ci.yml b/.github/workflows/interchange_ci.yml
index 0819aa07..3de87198 100644
--- a/.github/workflows/interchange_ci.yml
+++ b/.github/workflows/interchange_ci.yml
@@ -3,9 +3,11 @@ name: FPGA interchange CI tests
on: [push, pull_request]
jobs:
-
- Run-tests:
+ Run-Tests:
runs-on: ubuntu-latest
+ strategy:
+ matrix:
+ device: [xc7a35t, xc7a100t, xc7a200t, xc7z010]
steps:
- uses: actions/checkout@v2
@@ -19,11 +21,14 @@ jobs:
sudo apt-get update
sudo apt-get install git make cmake libboost-all-dev python3-dev libeigen3-dev tcl-dev clang bison flex swig
- - name: Execute build script
+ - name: Execute build interchange script
run: stdbuf -i0 -o0 -e0 ./.github/ci/build_interchange.sh
- name: Run tests
+ env:
+ DEVICE: ${{ matrix.device }}
run: |
cd build
- make all-fpga_interchange-archcheck-tests
- make all-fpga_interchange-tests -j`nproc`
+ make chipdb-$DEVICE-bin-check-test-data
+ make chipdb-$DEVICE-bin-check
+ make all-$DEVICE-tests -j`nproc`