GNU GCC intrinsic test cases compilation #465
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: GNU GCC intrinsic test cases compilation | |
on: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 18 * * 0-6" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Prerequisites | |
run: | |
sudo apt-get install autoconf automake autotools-dev curl python3 python3-pip | |
libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf | |
libtool patchutils bc zlib1g-dev libexpat-dev ninja-build git cmake libglib2.0-dev | |
dejagnu expect tcl | |
- name: Download GCC | |
run: | | |
cd .. && rm -rf riscv-gnu-toolchain | |
git clone --recursive https://github.com/riscv-collab/riscv-gnu-toolchain.git | |
echo $(pwd) | |
cd $(pwd)/riscv-gnu-toolchain/gcc | |
git remote update | |
git reset --hard origin/master | |
cd ../binutils | |
git remote update | |
git reset --hard origin/master | |
- name: Run auto generated test cases | |
run: | | |
sudo rm -rf /usr/share/dotnet | |
sudo rm -rf /opt/ghc | |
sudo rm -rf "/usr/local/share/boost" | |
sudo rm -rf "$AGENT_TOOLSDIRECTORY" | |
make -C rvv-intrinsic-generator report-gnu GNU_TOOLCHAIN_DIR=$(pwd)/../riscv-gnu-toolchain | |
- name: Check gcc result | |
run: | | |
tail -n 17 $(pwd)/../riscv-gnu-toolchain/build-gcc-newlib-stage2/gcc/testsuite/gcc/gcc.log | |
- name: Check g++ result | |
run: | | |
tail -n 27 $(pwd)/../riscv-gnu-toolchain/build-gcc-newlib-stage2/gcc/testsuite/g++/g++.log |