Skip to content

Commit

Permalink
Limit CI script to just initialization stage.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yvan Tortorella committed Feb 22, 2024
1 parent e8d8c8c commit 38c0357
Showing 1 changed file with 54 additions and 61 deletions.
115 changes: 54 additions & 61 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,71 +4,64 @@
#
# Yvan Tortorella <[email protected]>

variables:
GIT_SUBMODULE_STRATEGY: recursive
# Our reference GCC toolchain for reproducible builds

stages:
- init
- build
- test

init:
stage: init
script:
- cd golden-model
- source setup-py.sh

.base:
artifacts:
when: always
expire_in: 1 week

.redmule-build-tpl:
extends: .base
needs: [ init ]
stage: build
script:
- SETUP-CONFIG=${SETUP-CONFIG}
- source scripts/${SETUP-CONFIG}.sh
- make update-ips
- make build-hw

redmule-build-hwpe:
extends: .redmule-build-tpl
variables:
SETUP-CONFIG: "setup-hwpe"

redmule-build-complex:
extends: .redmule-build-tpl
variables:
SETUP-CONFIG: "setup-complex"

.redmule-vsim-tpl:
extends: .base
needs: [ build ]
stage: test
script:
- SETUP-CONFIG=${SETUP-CONFIG}
- source scripts/${SETUP-CONFIG}.sh
- make goden M=${M} N=${N} K=${K}
- make clean all
- make run
- '(grep -rn Success!" ./work/transcript)'
- (! grep -rn "Fail!" ./work/transcript)

hwpe-test:
extends: .redmule-vsim-tpl
variables:
SETUP-CONFIG: "setup-hwpe"
parallel:
matrix:
- { M: 32, N=32, K=32 }
- cd golden-model & source setup-py.sh

complex-test:
extends: .redmule-vsim-tpl
variables:
SETUP-CONFIG: "setup-complex"
parallel:
matrix:
- { M: 32, N=32, K=32 }
# .base:
# artifacts:
# when: always
# expire_in: 1 week
#
# .redmule-build-tpl:
# extends: .base
# needs: [ init ]
# stage: build
# script:
# - SETUP-CONFIG=${SETUP-CONFIG}
# - source scripts/${SETUP-CONFIG}.sh
# - make update-ips
# - make build-hw
#
# redmule-build-hwpe:
# extends: .redmule-build-tpl
# variables:
# SETUP-CONFIG: "setup-hwpe"
#
# redmule-build-complex:
# extends: .redmule-build-tpl
# variables:
# SETUP-CONFIG: "setup-complex"
#
# .redmule-vsim-tpl:
# extends: .base
# needs: [ build ]
# stage: test
# script:
# - SETUP-CONFIG=${SETUP-CONFIG}
# - source scripts/${SETUP-CONFIG}.sh
# - make goden M=${M} N=${N} K=${K}
# - make clean all
# - make run
# - '(grep -rn Success!" ./work/transcript)'
# - (! grep -rn "Fail!" ./work/transcript)
#
# hwpe-test:
# extends: .redmule-vsim-tpl
# variables:
# SETUP-CONFIG: "setup-hwpe"
# parallel:
# matrix:
# - { M: 32, N=32, K=32 }
#
# complex-test:
# extends: .redmule-vsim-tpl
# variables:
# SETUP-CONFIG: "setup-complex"
# parallel:
# matrix:
# - { M: 32, N=32, K=32 }

0 comments on commit 38c0357

Please sign in to comment.