Skip to content

Commit

Permalink
ci: Fix github workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Huaqi Fang <[email protected]>
  • Loading branch information
fanghuaqi committed Dec 6, 2024
1 parent d0b08b6 commit e704497
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,22 +43,20 @@ jobs:
sudo apt-get -q update
sudo apt install -yq python3 python3-pip unzip libz-dev libssl-dev libglib2.0-dev libfdt-dev libpixman-1-dev zlib1g-dev libncursesw5-dev libncursesw5 libgmp-dev libmpfr-dev libmpc-dev
sudo python3 -m pip install -q --upgrade pip
# install to user local storage
# ERROR: Cannot uninstall 'pyserial'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
pip3 install -q -r tools/scripts/requirements.txt
mkdir -p prebuilt_tools
cd prebuilt_tools
echo "Prepare Nuclei Toolchain......"
toolzip=nuclei_riscv_newlibc_prebuilt_linux64_2024.06.tar.bz2
TOOLVER=2024.06
echo "Prepare Nuclei Toolchain $TOOLVER ......"
toolzip=nuclei_riscv_newlibc_prebuilt_linux64_${TOOLVER}.tar.bz2
if [ ! -e $toolzip ] ; then
echo "Download Nuclei toolchain now!"
wget --progress=dot:giga --no-check-certificate https://www.nucleisys.com/upload/files/toochain/gcc/$toolzip
ls -lh $toolzip
md5sum $toolzip
fi
tar -xjf $toolzip
echo "Prepare Nuclei QEMU......"
toolzip=nuclei-qemu-2024.06-linux-x64.tar.gz
echo "Prepare Nuclei QEMU $TOOLVER ......."
toolzip=nuclei-qemu-${TOOLVER}-linux-x64.tar.gz
if [ ! -e $toolzip ] ; then
echo "Download Nuclei qemu now!"
wget --progress=dot:giga --no-check-certificate https://www.nucleisys.com/upload/files/toochain/qemu/$toolzip
Expand All @@ -85,6 +83,7 @@ jobs:
run: |
echo "Setup Nuclei SDK build environment"
cd nuclei-sdk
git describe --tags --always
source setup.sh
cd ..
echo "Set NUCLEI_SDK_ROOT=$(pwd)/nuclei-sdk"
Expand Down

0 comments on commit e704497

Please sign in to comment.