chore(ci): enlarge JVM_XMX for xiangshan elaboration #14
This file contains hidden or 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: CI | |
| on: | |
| push: | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| workflow_dispatch: | |
| jobs: | |
| test-libso-xiangshan: | |
| # strategy: | |
| # matrix: | |
| # os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04] | |
| runs-on: ubuntu-latest | |
| # container: ghcr.io/openxiangshan/xs-env:${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install deps | |
| run: | | |
| sudo apt install python3-psutil | |
| mkdir -p ~/.local/bin | |
| sh -c "curl -L https://repo1.maven.org/maven2/com/lihaoyi/mill-dist/1.0.4/mill-dist-1.0.4-mill.sh -o ~/.local/bin/mill && chmod +x ~/.local/bin/mill" | |
| export PATH=~/.local/bin:$PATH | |
| - name: Prepare XiangShan | |
| run: | | |
| cd $GITHUB_WORKSPACE/.. | |
| git clone --depth 1 https://github.com/OpenXiangShan/XiangShan.git | |
| cd XiangShan && make init && rm -rf difftest && cp -r $GITHUB_WORKSPACE . | |
| echo "NOOP_HOME=$(pwd)" >> $GITHUB_ENV | |
| - name: Init swapfile | |
| run: | | |
| if [ -f /mnt/swapfile ]; then | |
| sudo swapoff /mnt/swapfile || true | |
| sudo rm -f /mnt/swapfile | |
| fi | |
| sudo fallocate -l 32G /mnt/swapfile | |
| sudo chmod 600 /mnt/swapfile | |
| sudo mkswap /mnt/swapfile | |
| sudo swapon /mnt/swapfile | |
| - name: Chisel Elaboration | |
| run: | | |
| # make -C $NOOP_HOME sim-verilog CHISEL_TARGET=chirrtl JVM_XMX=10G | |
| make -C $NOOP_HOME verilog WITH_CONSTANTIN=0 WITH_CHISELDB=0 CONFIG='XSNoCTopConfig --enable-difftest' ISSUE=B XSTOP_PREFIX=bosc_ JVM_XMX=10g | |
| - name: Build libdifftest.so | |
| run: | | |
| make -C $NOOP_HOME/difftest difftest-so | |
| mv $NOOP_HOME/build/libdifftest.so $GITHUB_WORKSPACE/libdifftest.so | |
| # - name: Release libdifftest.so to artifacts | |
| # uses: actions/upload-artifact@v4 | |
| # with: | |
| # name: libdifftest-${{ matrix.os }}-xiangshan.so | |
| # path: libdifftest.so |