blob: 1ab44d145ee34628a0c7390d9e8b53a15cb115a6 [file] [log] [blame]
# Copyright 2020-2022 F4PGA Authors
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
# SPDX-License-Identifier: Apache-2.0
name: CI tests
on: [push, pull_request]
jobs:
Run-tests:
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
plugin:
- fasm
- xdc
- params
- sdc
- ql-iob
- design_introspection
- integrateinv
- ql-qlf
- systemverilog
- uhdm
- dsp-ff
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 g++-9 build-essential bison flex \
libreadline-dev gawk tcl-dev libffi-dev git graphviz xdot \
pkg-config libboost-system-dev libboost-python-dev \
libboost-filesystem-dev zlib1g-dev clang-format-8 cmake
- name: Format
run: source .github/workflows/format-check.sh
env:
OS: ${{ runner.os }}
- name: ccache
uses: hendrikmuhs/ccache-action@v1
- name: Install Yosys
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
source .github/workflows/setup.sh
env:
OS: ${{ runner.os }}
- name: Build and test plugins
run: |
export PATH="/usr/lib/ccache:/usr/local/opt/ccache/libexec:$PATH"
source env/conda/bin/activate yosys-plugins
source .github/workflows/build-and-test.sh
env:
OS: ${{ runner.os }}
PLUGIN_NAME: ${{ matrix.plugin }}