Skip to content

Commit

Permalink
(beta) fix apt mirror issue
Browse files Browse the repository at this point in the history
  • Loading branch information
KFERMercer committed Dec 13, 2019
1 parent ab8205c commit 8bae341
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions openwrt-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:

build:

runs-on: ubuntu-latest
runs-on: ubuntu-18.04

steps:

Expand All @@ -36,8 +36,26 @@ jobs:
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
# modify apt mirrors
cat > /etc/apt/sources.list <<EOF
deb http://archive.ubuntu.com/ubuntu/ boinc main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ boinc main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ boinc-security main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ boinc-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ boinc-updates main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ boinc-updates main restricted universe multiverse
# deb http://archive.ubuntu.com/ubuntu/ boinc-proposed main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ boinc-proposed main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ boinc-backports main restricted universe multiverse
# deb-src http://archive.ubuntu.com/ubuntu/ boinc-backports main restricted universe multiverse
EOF
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
Expand Down

0 comments on commit 8bae341

Please sign in to comment.