From 5ad9f6c8e563408d1507deda4645d773f531abb6 Mon Sep 17 00:00:00 2001 From: KevinMX Date: Sat, 27 Apr 2024 16:29:23 +0800 Subject: [PATCH] ci: fix&update for newifi_d2 --- .github/workflows/build-newifi_d2.yml | 25 +++++++++++++++++++------ 1 file changed, 19 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-newifi_d2.yml b/.github/workflows/build-newifi_d2.yml index 254e022..3b084ed 100644 --- a/.github/workflows/build-newifi_d2.yml +++ b/.github/workflows/build-newifi_d2.yml @@ -33,21 +33,35 @@ env: jobs: build: - runs-on: ubuntu-20.04 + runs-on: ubuntu-22.04 steps: - name: Checkout uses: actions/checkout@main + - name: Free Disk Space + uses: jlumbroso/free-disk-space@main + with: + tool-cache: true + android: true + dotnet: true + haskell: true + large-packages: true + docker-images: true + swap-storage: true + - name: Initialization environment env: DEBIAN_FRONTEND: noninteractive run: | - sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc /etc/mysql /etc/php sudo -E apt-get -qq update - sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* adoptopenjdk* mysql* php* mongodb* dotnet* moby* snapd* - sudo -E apt-get -qq install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch python3 unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs gcc-multilib g++-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler antlr3 gperf swig - sudo -E apt-get -qq autoremove --purge + sudo -E apt-get -qqy install ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \ + bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \ + git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libfuse-dev libglib2.0-dev libgmp3-dev \ + libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libpython3-dev libreadline-dev \ + libssl-dev libtool lrzsz mkisofs msmtp ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 \ + python3-pyelftools python3-setuptools qemu-utils rsync scons squashfs-tools subversion swig texinfo \ + uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev sudo -E apt-get -qq clean sudo timedatectl set-timezone "$TZ" sudo mkdir -p /workdir @@ -141,7 +155,6 @@ jobs: run: | echo "release_tag=$(date +"%Y.%m.%d-%H%M")-newifi_d2" >> $GITHUB_OUTPUT touch release.txt - [ $UPLOAD_WETRANSFER = true ] && echo "[WeTransfer](${{ steps.wetransfer.outputs.url }})" >> release.txt echo "status=success" >> $GITHUB_OUTPUT - name: Upload firmware to release