From cf0b684a795ba5860f3cb087aaa32beaabf41254 Mon Sep 17 00:00:00 2001 From: Alessandro Comodi Date: Tue, 8 Mar 2022 14:48:28 +0100 Subject: [PATCH] ci: separate test and database in different workflows This also updates the README badges Signed-off-by: Alessandro Comodi --- .github/workflows/{ci.yml => database.yml} | 38 ------------------ .github/workflows/tests.yml | 46 ++++++++++++++++++++++ README.md | 16 +++----- 3 files changed, 52 insertions(+), 48 deletions(-) rename .github/workflows/{ci.yml => database.yml} (61%) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/database.yml similarity index 61% rename from .github/workflows/ci.yml rename to .github/workflows/database.yml index 61223812..924cc6e8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/database.yml @@ -7,44 +7,6 @@ on: name: CI Build jobs: - - Tests: - container: ubuntu:bionic - - runs-on: [self-hosted, Linux, X64] - - env: - ALLOW_ROOT: true - - steps: - - - uses: actions/checkout@v2 - with: - submodules: recursive - - - name: Install - run: | - apt update - apt install -y \ - bash bison build-essential ca-certificates clang-format cmake psmisc \ - colordiff coreutils git flex python3 python3-dev python3-venv xsltproc - - - name: Build - run: make build --output-sync=target --warn-undefined-variables -j$(nproc) - - - name: Environment - run: make env --output-sync=target --warn-undefined-variables - - - name: Run Test - run: make test --output-sync=target --warn-undefined-variables - - - uses: actions/upload-artifact@v2 - if: ${{ always() }} - with: - path: | - **/results*.gz - **/plot_*.svg - BuildDatabase: container: ubuntu:bionic diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 00000000..7c5f3f1d --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,46 @@ +on: + pull_request: + push: + schedule: + - cron: '0 0 * * *' + +name: CI Build + +jobs: + + Tests: + container: ubuntu:bionic + + runs-on: [self-hosted, Linux, X64] + + env: + ALLOW_ROOT: true + + steps: + + - uses: actions/checkout@v2 + with: + submodules: recursive + + - name: Install + run: | + apt update + apt install -y \ + bash bison build-essential ca-certificates clang-format cmake psmisc \ + colordiff coreutils git flex python3 python3-dev python3-venv xsltproc + + - name: Build + run: make build --output-sync=target --warn-undefined-variables -j$(nproc) + + - name: Environment + run: make env --output-sync=target --warn-undefined-variables + + - name: Run Test + run: make test --output-sync=target --warn-undefined-variables + + - uses: actions/upload-artifact@v2 + if: ${{ always() }} + with: + path: | + **/results*.gz + **/plot_*.svg diff --git a/README.md b/README.md index 9a55d23a..9b479d6f 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,10 @@ # Project X-Ray [![Documentation Status](https://readthedocs.org/projects/pyxray/badge/?version=latest)](http://prjxray.readthedocs.org/) -[![License](https://img.shields.io/github/license/SymbiFlow/prjxray.svg)](https://github.com/SymbiFlow/prjxray/blob/master/LICENSE) -[![Build Status](https://travis-ci.org/SymbiFlow/prjxray.svg?branch=master)](https://travis-ci.com/github/SymbiFlow/prjxray) -[![Tests](http://storage.googleapis.com/symbiflow-badges/prjxray/tests.svg)](http://storage.googleapis.com/symbiflow-badges/prjxray/tests.html) +[![License](https://img.shields.io/github/license/f4pga/prjxray.svg)](https://github.com/f4pga/prjxray/blob/master/LICENSE) -[![Database Generation](http://storage.googleapis.com/symbiflow-badges/prjxray/database.svg)](http://storage.googleapis.com/symbiflow-badges/prjxray/database.html) -[![Artix 7 Database](http://storage.googleapis.com/symbiflow-badges/prjxray/artix7.svg)](http://storage.googleapis.com/symbiflow-badges/prjxray/artix7.html) -[![Kintex 7 Database](http://storage.googleapis.com/symbiflow-badges/prjxray/kintex7.svg)](http://storage.googleapis.com/symbiflow-badges/prjxray/kintex7.html) -[![Zynq 7 Database](http://storage.googleapis.com/symbiflow-badges/prjxray/zynq7.svg)](http://storage.googleapis.com/symbiflow-badges/prjxray/zynq7.html) +![Tests](https://github.com/f4pga/prjxray/actions/workflows/tests.yml/badge.svg) +![Database Generation](https://github.com/f4pga/prjxray/actions/workflows/database.yml/badge.svg) Documenting the Xilinx 7-series bit-stream format. @@ -35,7 +31,7 @@ that shell. The Vivado wrapper utils/vivado.sh makes sure that the environment variables from XRAY_VIVADO_SETTINGS are automatically sourced in a separate shell that is then only used to run Vivado to avoid these problems. -**Why 2017.2?** Currently the fuzzers only work on `2017.2`, see [Issue #14 on prjxray](https://github.com/SymbiFlow/prjxray/issues/14). +**Why 2017.2?** Currently the fuzzers only work on `2017.2`, see [Issue #14 on prjxray](https://github.com/f4pga/prjxray/issues/14). **Is 2017.2 really required?** Yes, only `2017.2` works. Until Issue #14 is solved, **only** `2017.2` works and will be supported. @@ -43,7 +39,7 @@ shell that is then only used to run Vivado to avoid these problems. Clone the ``prjxray`` repository and its submodules: ```bash -git clone git@github.com:SymbiFlow/prjxray.git +git clone git@github.com:f4pga/prjxray.git cd prjxray git submodule update --init --recursive ``` @@ -233,7 +229,7 @@ bitstream format in the [database](database) directory. As running all these fuzzers can take significant time, [Tim 'mithro' Ansell ](https://github.com/mithro) has graciously agreed to maintain a copy of the database in the -[prjxray-db](https://github.com/SymbiFlow/prjxray-db) repository. +[prjxray-db](https://github.com/f4pga/prjxray-db) repository. Please direct enquires to [Tim](mailto:me@mith.ro) if there are any issues with it.