Skip to content

Commit

Permalink
fix apt checking issue
Browse files Browse the repository at this point in the history
  • Loading branch information
KFERMercer committed Dec 13, 2019
1 parent 7004b72 commit 0b204bb
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions openwrt-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,25 @@ jobs:
with:
ref: master

- name: Initialization environment
- name: Space cleanup
env:
DEBIAN_FRONTEND: noninteractive
run: |
docker rmi `docker images -q`
echo "Deleting files, please wait ..."
sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php
sudo rm -rf /usr/share/dotnet /etc/mysql /etc/php /etc/apt/sources.list.d
sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* mysql* php*
sudo -E apt-get update
sudo -E apt-get -y install build-essential asciidoc binutils bzip2 gawk gettext git libncurses5-dev libz-dev patch unzip zlib1g-dev lib32gcc1 libc6-dev-i386 subversion flex uglifyjs git-core gcc-multilib p7zip p7zip-full msmtp libssl-dev texinfo libglib2.0-dev xmlto qemu-utils upx libelf-dev autoconf automake libtool autopoint device-tree-compiler
sudo -E apt-get -y autoremove --purge
sudo -E apt-get clean
df -h
- name: Update feeds
run: |
./scripts/feeds update -a
./scripts/feeds install -a
- name: Costom configure file
- name: Generate configuration file
run: |
rm -f ./.config*
touch ./.config
Expand Down Expand Up @@ -190,7 +190,16 @@ jobs:
find ./dl/ -size -1024c -exec rm -f {} \;
- name: Compile firmware
run: DEBIAN_FRONTEND=noninteractive make -j$(nproc) V=s
run: |
make -j$(nproc) || make -j1 V=s
echo "======================="
echo "Space usage:"
echo "======================="
df -h
echo "======================="
du -h --max-depth=1 ./ --exclude=build_dir --exclude=bin
du -h --max-depth=1 ./build_dir
du -h --max-depth=1 ./bin
- name: Prepare artifact
run: find ./bin/targets/ -type d -name "packages" | xargs rm -rf {}
Expand Down

0 comments on commit 0b204bb

Please sign in to comment.