aboutsummaryrefslogtreecommitdiffstats
path: root/.github/workflows
diff options
context:
space:
mode:
authorAlessandro Comodi <acomodi@antmicro.com>2021-03-25 11:52:39 +0100
committerAlessandro Comodi <acomodi@antmicro.com>2021-03-25 16:24:52 +0100
commitc4cb86efe9dece4a837bdd490f5d7f78d2b4480f (patch)
treea23f37b687bffa78976d39df4c212407e539732c /.github/workflows
parent9f28fa4e75e30eb8329e737081a97189b05f013e (diff)
downloadnextpnr-c4cb86efe9dece4a837bdd490f5d7f78d2b4480f.tar.gz
nextpnr-c4cb86efe9dece4a837bdd490f5d7f78d2b4480f.tar.bz2
nextpnr-c4cb86efe9dece4a837bdd490f5d7f78d2b4480f.zip
gh-actions: use ccache and build tools before running tests
Signed-off-by: Alessandro Comodi <acomodi@antmicro.com>
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/interchange_ci.yml63
1 files changed, 62 insertions, 1 deletions
diff --git a/.github/workflows/interchange_ci.yml b/.github/workflows/interchange_ci.yml
index 3de87198..8b16d795 100644
--- a/.github/workflows/interchange_ci.yml
+++ b/.github/workflows/interchange_ci.yml
@@ -3,8 +3,57 @@ name: FPGA interchange CI tests
on: [push, pull_request]
jobs:
+ Build-yosys:
+ runs-on: ubuntu-latest
+ 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
+
+ - name: ccache
+ uses: hendrikmuhs/ccache-action@v1
+
+ - name: Execute build yosys script
+ run: |
+ export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
+ source ./.github/ci/build_interchange.sh
+ build_yosys
+
+ Build-nextpnr:
+ runs-on: ubuntu-latest
+ 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
+
+ - name: ccache
+ uses: hendrikmuhs/ccache-action@v1
+
+ - name: Execute build interchange script
+ run: |
+ export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
+ source ./.github/ci/build_interchange.sh
+ build_nextpnr
+
Run-Tests:
runs-on: ubuntu-latest
+ needs: [Build-yosys, Build-nextpnr]
strategy:
matrix:
device: [xc7a35t, xc7a100t, xc7a200t, xc7z010]
@@ -21,8 +70,20 @@ 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: ccache
+ uses: hendrikmuhs/ccache-action@v1
+
- name: Execute build interchange script
- run: stdbuf -i0 -o0 -e0 ./.github/ci/build_interchange.sh
+ env:
+ RAPIDWRIGHT_PATH: ${{ github.workspace }}/RapidWright
+ INTERCHANGE_SCHEMA_PATH: ${{ github.workspace }}/3rdparty/fpga-interchange-schema/interchange
+ PYTHON_INTERCHANGE_PATH: ${{ github.workspace }}/python-fpga-interchange
+ PYTHON_INTERCHANGE_TAG: v0.0.4
+
+ run: |
+ export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
+ source ./.github/ci/build_interchange.sh
+ build_yosys && build_nextpnr && get_dependencies
- name: Run tests
env: