Dev/panda #65
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
name: Full Regressions Clang | |
on: | |
pull_request: | |
branches: | |
- main | |
paths-ignore: | |
- "documentation/**" | |
workflow_dispatch: | |
concurrency: | |
group: full-clang-${{ github.head_ref }} | |
cancel-in-progress: true | |
jobs: | |
build: | |
uses: ./.github/workflows/build-appimage.yml | |
with: | |
package-name: bambu-clang-full | |
compilers: gcc-7,clang-4,clang-5,clang-6,clang-7,clang-8,clang-9,clang-10,clang-11,clang-12,clang-13,clang-16 | |
build-compiler: gcc-8 | |
configure: --enable-glpk --enable-flopoco --enable-opt --with-opt-level=2 --enable-release CC=gcc-8 CXX=g++-8 | |
secrets: inherit | |
simulate-all: | |
needs: [build] | |
runs-on: [self-hosted, long, mentor] | |
env: | |
report-dir: test-reports | |
args: -c=--simulator=MODELSIM -c=--assert-debug | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- outname: all_clang_softfloat-tests | |
script: all_clang_softfloat-tests.sh | |
- outname: all_clang_CHStone-frontend | |
script: all_clang_CHStone-frontend.sh | |
- outname: all_clang_softfloat-tests-vhdl | |
script: all_clang_softfloat-tests.sh -c=-wH | |
- outname: all_clang_CHStone-frontend-vhdl | |
script: all_clang_CHStone-frontend.sh -c=-wH | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
with: | |
submodules: 'true' | |
- name: Download Bambu AppImage | |
uses: ./.github/actions/storage-download | |
with: | |
name: ${{needs.build.outputs.package-name}} | |
storage-url: "${{secrets.CI_STORAGE_URL}}" | |
username: "${{secrets.CI_STORAGE_USER}}" | |
password: "${{secrets.CI_STORAGE_TOKEN}}" | |
- name: Setup binaries | |
id: setup | |
shell: bash | |
run: | | |
mkdir bin | |
ln -s $PWD/*.AppImage bin/bambu | |
ln -s $PWD/*.AppImage bin/spider | |
echo "local-bin=$PWD/bin" >> $GITHUB_OUTPUT | |
- name: Launch test suite | |
id: suite | |
shell: bash | |
run: | | |
export PATH=${{steps.setup.outputs.local-bin}}:$PATH | |
mkdir ${{env.report-dir}} | |
out_dir="$PWD/${{env.report-dir}}" | |
echo "test-reports-dir=$out_dir" >> $GITHUB_OUTPUT | |
./panda_regressions/hls/${{matrix.script}} --returnfail --junitdir="$out_dir" --csv="$out_dir/perf.csv" --table="$out_dir/perf.tex" ${{env.args}} ${{matrix.args}} | |
- name: Upload test reports | |
if: ${{ !cancelled() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: ${{matrix.outname}} | |
path: ${{steps.suite.outputs.test-reports-dir}} | |
grs: | |
needs: [build, simulate-all] | |
strategy: | |
fail-fast: false | |
matrix: | |
compiler: [I386_CLANG4, I386_CLANG5, I386_CLANG6, I386_CLANG7, I386_CLANG8, I386_CLANG9, I386_CLANG10, I386_CLANG11, I386_CLANG12, I386_CLANG13, I386_CLANG16] | |
uses: ./.github/workflows/reusable-grs.yml | |
with: | |
package-name: ${{needs.build.outputs.package-name}} | |
compiler: ${{matrix.compiler}} | |
additional-args: -c=--simulator=VERILATOR -t150m | |
secrets: inherit | |
grs-sdc: | |
needs: [build, grs] | |
strategy: | |
fail-fast: false | |
matrix: | |
compiler: [I386_CLANG4, I386_CLANG5, I386_CLANG6, I386_CLANG7, I386_CLANG8, I386_CLANG9, I386_CLANG10, I386_CLANG11, I386_CLANG12, I386_CLANG13, I386_CLANG16] | |
uses: ./.github/workflows/reusable-grs.yml | |
with: | |
package-name: ${{needs.build.outputs.package-name}} | |
compiler: ${{matrix.compiler}} | |
additional-args: -c=--simulator=VERILATOR -t150m -c=--speculative-sdc-scheduling --skip_list 20040705-1,20040705-2,20040629-1 | |
secrets: inherit | |
grs-vhdl: | |
needs: [build, grs] | |
uses: ./.github/workflows/reusable-grs-vhdl.yml | |
with: | |
package-name: ${{needs.build.outputs.package-name}} | |
test-compilers: I386_CLANG4,I386_CLANG5,I386_CLANG6,I386_CLANG7,I386_CLANG8,I386_CLANG9,I386_CLANG10,I386_CLANG11,I386_CLANG12,I386_CLANG13,I386_CLANG16 | |
secrets: inherit | |
examples: | |
needs: [build, simulate-all] | |
uses: ./.github/workflows/reusable-examples.yml | |
with: | |
package-name: ${{needs.build.outputs.package-name}} | |
test-compiler: I386_CLANG16 | |
secrets: inherit | |
success: | |
if: ${{ !cancelled() }} | |
needs: [grs, grs-vhdl, examples] | |
runs-on: [self-hosted] | |
steps: | |
- name: Check GCC Regression Simple status | |
if: ${{ needs.grs.result != 'success' }} | |
run: exit 1 | |
- name: Check GCC Regression Simple VHDL status | |
if: ${{ needs.grs-vhdl.result != 'success' }} | |
run: exit 1 | |
- name: Check Examples status | |
if: ${{ needs.examples.result != 'success' }} | |
run: exit 1 |