Skip to content

Commit 5ad9f6c

Browse files
committed
ci: fix&update for newifi_d2
1 parent 6ea92ab commit 5ad9f6c

File tree

1 file changed

+19
-6
lines changed

1 file changed

+19
-6
lines changed

.github/workflows/build-newifi_d2.yml

+19-6
Original file line numberDiff line numberDiff line change
@@ -33,21 +33,35 @@ env:
3333

3434
jobs:
3535
build:
36-
runs-on: ubuntu-20.04
36+
runs-on: ubuntu-22.04
3737

3838
steps:
3939
- name: Checkout
4040
uses: actions/checkout@main
4141

42+
- name: Free Disk Space
43+
uses: jlumbroso/free-disk-space@main
44+
with:
45+
tool-cache: true
46+
android: true
47+
dotnet: true
48+
haskell: true
49+
large-packages: true
50+
docker-images: true
51+
swap-storage: true
52+
4253
- name: Initialization environment
4354
env:
4455
DEBIAN_FRONTEND: noninteractive
4556
run: |
46-
sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /usr/local/lib/android /opt/ghc /etc/mysql /etc/php
4757
sudo -E apt-get -qq update
48-
sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* adoptopenjdk* mysql* php* mongodb* dotnet* moby* snapd*
49-
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
50-
sudo -E apt-get -qq autoremove --purge
58+
sudo -E apt-get -qqy install ack antlr3 asciidoc autoconf automake autopoint binutils bison build-essential \
59+
bzip2 ccache cmake cpio curl device-tree-compiler fastjar flex gawk gettext gcc-multilib g++-multilib \
60+
git gperf haveged help2man intltool libc6-dev-i386 libelf-dev libfuse-dev libglib2.0-dev libgmp3-dev \
61+
libltdl-dev libmpc-dev libmpfr-dev libncurses5-dev libncursesw5-dev libpython3-dev libreadline-dev \
62+
libssl-dev libtool lrzsz mkisofs msmtp ninja-build p7zip p7zip-full patch pkgconf python2.7 python3 \
63+
python3-pyelftools python3-setuptools qemu-utils rsync scons squashfs-tools subversion swig texinfo \
64+
uglifyjs upx-ucl unzip vim wget xmlto xxd zlib1g-dev
5165
sudo -E apt-get -qq clean
5266
sudo timedatectl set-timezone "$TZ"
5367
sudo mkdir -p /workdir
@@ -141,7 +155,6 @@ jobs:
141155
run: |
142156
echo "release_tag=$(date +"%Y.%m.%d-%H%M")-newifi_d2" >> $GITHUB_OUTPUT
143157
touch release.txt
144-
[ $UPLOAD_WETRANSFER = true ] && echo "[WeTransfer](${{ steps.wetransfer.outputs.url }})" >> release.txt
145158
echo "status=success" >> $GITHUB_OUTPUT
146159
147160
- name: Upload firmware to release

0 commit comments

Comments
 (0)