From 845c4fada5ebe3491e703abb179c099b61b93db2 Mon Sep 17 00:00:00 2001 From: Ganesh Gore Date: Sat, 3 Apr 2021 18:20:23 -0600 Subject: [PATCH 1/2] [CICD] Adding docker based regression --- .github/workflows/buildDocker.yml | 50 +++++++++++++++++++++++++++++++ 1 file changed, 50 insertions(+) create mode 100644 .github/workflows/buildDocker.yml diff --git a/.github/workflows/buildDocker.yml b/.github/workflows/buildDocker.yml new file mode 100644 index 00000000..607dcc24 --- /dev/null +++ b/.github/workflows/buildDocker.yml @@ -0,0 +1,50 @@ +# ############################################################################## +# TODO: Add verification task after the netlist modification +################################################################################ + +name: Architecture XML Regression + +# Run CI on push on each branch +on: + push: + pull_request: + +jobs: + generate_netlist: + name: Architecture development + runs-on: ubuntu-18.04 + container: ghcr.io/lnis-uofu/openfpga-master:latest + strategy: + fail-fast: false + matrix: + config: + - name: "FPGA1212_QLSOFA_HD" + - name: "FPGA1212_SOFA_CHD" + - name: "FPGA1212_SOFA_HD" + steps: + - name: Runner workspace path + run: | + echo "Cleaning up previous run" + rm -rf "${{ github.workspace }}" + mkdir -p "${{ github.workspace }}" + - name: Checkout OpenFPGA-ArcticPro3 repo + uses: actions/checkout@v2 + - name: Detect changes + uses: technote-space/get-diff-action@v4 + with: + PATTERNS: | + ${{ matrix.config.name }}_PNR/*_task/** + - name: Running benchmark + shell: bash + if: ${{ env.GIT_DIFF || (github.event_name == 'pull_request' && github.ref == 'refs/heads/master') }} + run: | + ${PYTHON_EXEC} -m pip install -r requirements.txt + cat ${{ matrix.config.name }}_PNR/${{ matrix.config.name }}_task/config/task_simulation.conf + cd ${{ matrix.config.name }}_PNR && make clean runOpenFPGA + - name: Upload artifact + uses: actions/upload-artifact@v2 + if: ${{ failure() }} + with: + name: failed_${{matrix.config.name}}_regression_log + retention-days: 1 + path: "${{ matrix.config.name }}_PNR/*_task/latest/*.log" From 15b64a68aa73915f9093480bed4d83d5cdb53080 Mon Sep 17 00:00:00 2001 From: Ganesh Gore Date: Sat, 3 Apr 2021 18:31:19 -0600 Subject: [PATCH 2/2] [CICD] Shortened name for CI quick view --- .github/workflows/buildDocker.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/buildDocker.yml b/.github/workflows/buildDocker.yml index 607dcc24..0a721c91 100644 --- a/.github/workflows/buildDocker.yml +++ b/.github/workflows/buildDocker.yml @@ -2,7 +2,7 @@ # TODO: Add verification task after the netlist modification ################################################################################ -name: Architecture XML Regression +name: Arch XML Regression # Run CI on push on each branch on: @@ -11,7 +11,7 @@ on: jobs: generate_netlist: - name: Architecture development + name: Arch development runs-on: ubuntu-18.04 container: ghcr.io/lnis-uofu/openfpga-master:latest strategy: