Update flow #13
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: Chipyard Megaboom Benchmark | |
on: | |
workflow_dispatch: | |
push: | |
pull_request: | |
jobs: | |
install-chipyard: | |
name: Install Chipyard | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/antmicro/megaboom-cpu-benchmarking:latest | |
defaults: | |
run: | |
shell: bash | |
env: | |
DEBIAN_FRONTEND: "noninteractive" | |
steps: | |
- name: install chipyard | |
id: install_chipyard | |
run: | | |
git clone https://github.com/ucb-bar/chipyard.git | |
pushd chipyard | |
git checkout 1.11.0 | |
./build-setup.sh riscv-tools -s 2 -s 3 -s 4 -s 5 -s 6 -s 7 -s 8 -s 9 | |
popd | |
- name: upload artifact | |
id: upload_artifact | |
uses: actions/upload-artifact@v3 | |
with: | |
name: chipyard | |
path: chipyard | |
binary-tests: | |
name: Binary test | |
needs: install-chipyard | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/antmicro/megaboom-cpu-benchmarking:latest | |
defaults: | |
run: | |
shell: bash | |
strategy: | |
fail-fast: false | |
matrix: | |
CONFIG: ["RocketConfig", "MegaBoomConfig"] | |
BINARY: ["../../tests/hello.riscv", "../../software/coremark/riscv-coremark/coremark.bare.riscv"] | |
env: | |
DEBIAN_FRONTEND: "noninteractive" | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: chipyard | |
path: ./chipyard | |
- name: Binary test | |
id: binary_test | |
run: | | |
echo "Binary test" | |
# source tools/bin/micromamba.rc | |
# cd chipyard | |
# source env.sh | |
# pushd sims/verilator | |
# make run-binary CONFIG=${CONFIG} BINARY=${BINARY} | |
# popd | |
coremark: | |
name: Coremark | |
needs: install-chipyard | |
runs-on: ubuntu-latest | |
container: | |
image: ghcr.io/antmicro/megaboom-cpu-benchmarking:latest | |
defaults: | |
run: | |
shell: bash | |
env: | |
DEBIAN_FRONTEND: "noninteractive" | |
steps: | |
- name: Download artifact | |
uses: actions/download-artifact@v3 | |
with: | |
name: chipyard | |
path: ./chipyard | |
- name: Coremark | |
run: | | |
echo "Coremark" | |
# git submodule update --init --recursive software/coremark | |
# pushd software/coremark | |
# cat build.sh | |
# ls -hal riscv-coremark/ | |
# cat riscv-coremark/build-coremark.sh | |
# ./build.sh | |
# popd | |