workflow #174
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2021-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: | |
Check: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Setup Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install | |
run: | | |
sudo apt update | |
pip install --upgrade -r requirements.txt | |
- uses: SymbiFlow/actions/checks@main | |
with: | |
exclude_license: | | |
- ./tests/test_data/bufhce/top_bit.golden.v | |
- ./tests/test_data/gtp/top_bit.golden.v | |
- ./tests/test_data/iddr/top_bit.golden.v | |
- ./tests/test_data/mmcm/top_bit.golden.v | |
- ./tests/test_data/oddr/top_bit.golden.v | |
- ./tests/test_data/pcie/top_bit.golden.v | |
- ./tests/test_data/simple_ff/top_bit.golden.v | |
- ./tests/test_data/carry4/top_bit.golden.v | |
- ./tests/test_data/pudc/top_bit.golden.v | |
- ./tests/equivalence_checking_data/add32/add32.v | |
- ./tests/equivalence_checking_data/alu/alu.v | |
- name: Check formatting | |
run: source .github/workflows/format.sh | |
Run-tests: | |
container: ubuntu:bionic | |
runs-on: [self-hosted, Linux, X64, gcp-custom-runners] | |
env: | |
GHA_EXTERNAL_DISK: "tools" | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Install | |
run: | | |
apt update | |
apt install -y python3.8 python3-pip python3-dev cmake git wget | |
- name: Get and build tools | |
run: | | |
make build | |
make env | |
- name: Test | |
run: | | |
source env/conda/bin/activate f4pga_xc_fasm2bels | |
source .github/workflows/check_env.sh | |
source .github/workflows/test.sh |