Skip to content

Commit

Permalink
Reduce flow
Browse files Browse the repository at this point in the history
  • Loading branch information
mczyz-antmicro authored and tmichalak committed Jan 25, 2024
1 parent b82c8aa commit a525f65
Showing 1 changed file with 12 additions and 56 deletions.
68 changes: 12 additions & 56 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,49 +6,8 @@ on:
pull_request:

jobs:
install-chipyard:
name: Install Chipyard
runs-on: ubuntu-latest
container:
image: ghcr.io/antmicro/megaboom-cpu-benchmarking:latest
volumes:
- /usr/share/dotnet:/usr/share/dotnet
- /usr/local/lib/android:/usr/local/lib/android
- /opt/ghc:/opt/ghc
defaults:
run:
shell: bash
env:
DEBIAN_FRONTEND: "noninteractive"
steps:
- name: Increase build space
run: |
echo "Before cleanup"
df -H
rm -rf /usr/share/dotnet/*
rm -rf /usr/local/lib/android/*
rm -rf /opt/ghc/*
echo "After cleanup"
df -H
- 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 5 -s 6 -s 7 -s 8 -s 9
popd
tar -czf chipyard.tar.gz chipyard/
- name: upload artifact
id: upload_artifact
uses: actions/upload-artifact@v4
with:
name: chipyard.tar.gz
path: ./

binary-tests:
name: Binary test
needs: install-chipyard
runs-on: ubuntu-latest
container:
image: ghcr.io/antmicro/megaboom-cpu-benchmarking:latest
Expand Down Expand Up @@ -76,30 +35,27 @@ jobs:
rm -rf /opt/ghc/*
echo "After cleanup"
df -H
- name: Download artifact
uses: actions/download-artifact@v3
with:
name: chipyard.tar.gz
path: ./
- name: Unpack artifact
run: |
tar -xf chipyard.tar.gz chipyard/
- name: Coremark
- name: install chipyard
id: install_chipyard
run: |
git clone https://github.com/ucb-bar/chipyard.git
pushd chipyard
source env.sh
git submodule update --init --recursive software/coremark
pushd software/coremark
./build.sh
popd
git checkout 1.11.0
./build-setup.sh riscv-tools -s 4 -s 5 -s 6 -s 7 -s 8 -s 9 -s 10
popd
- name: Binary test
id: binary_test
run: |
pushd chipyard
. /root/conda/etc/profile.d/conda.sh
conda activate
source env.sh
git submodule update --init --recursive software/coremark
pushd software/coremark
./build.sh
popd
pushd sims/verilator
make run-binary CONFIG=${CONFIG} BINARY=${BINARY}
make run-binary CONFIG=${{ matrix.CONFIG }} BINARY=${{ matrix.BINARY }}
popd
popd
Expand Down

0 comments on commit a525f65

Please sign in to comment.