Skip to content

Commit

Permalink
update config for openwrt
Browse files Browse the repository at this point in the history
  • Loading branch information
breakings committed Mar 27, 2024
1 parent 969182b commit 8ff0daa
Show file tree
Hide file tree
Showing 30 changed files with 1,159 additions and 1,652 deletions.
24 changes: 14 additions & 10 deletions .github/workflows/OpenWrt Official.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,23 +67,27 @@ jobs:
DEBIAN_FRONTEND: noninteractive
run: |
docker rmi `docker images -q`
sudo rm -rf /etc/apt/sources.list.d/* /usr/share/dotnet /etc/mysql /etc/php /usr/local/lib/android /opt/ghc
sudo -E apt-get -y purge azure-cli ghc* zulu* hhvm llvm* firefox google* dotnet* powershell openjdk* adoptopenjdk* mysql* php* mongodb* dotnet* moby* snapd* || true
sudo -E apt-get -qq update
sudo -E apt-get -qq install $(curl -fsSL https://is.gd/depends_ubuntu_2204)
sudo -E apt-get -qq autoremove --purge
sudo -E apt-get -qq clean
sudo rm -rf /usr/share/dotnet /etc/apt/sources.list.d /usr/local/lib/android 2>/dev/null
sudo -E apt -y purge azure-cli ghc* zulu* texlive* firefox google* dotnet* powershell openjdk* mongodb* moby* || true
[[ -n "${AGENT_TOOLSDIRECTORY}" ]] && sudo rm -rf "${AGENT_TOOLSDIRECTORY}"
sudo -E apt update
sudo -E apt -y install $(curl -fsSL https://is.gd/depends_ubuntu_2204)
sudo -E apt -y install clang llvm lld
sudo -E apt -y autoremove --purge
sudo -E systemctl daemon-reload
sudo -E apt clean && sudo -E apt autoclean
sudo timedatectl set-timezone "$TZ"
sudo mkdir -p /workdir
sudo chown $USER:$GROUPS /workdir
sudo mkdir -p /mnt/workdir
sudo chown $USER:$GROUPS /mnt/workdir
echo "status=success" >> ${GITHUB_OUTPUT}
df -Th
- name: Clone source code
working-directory: /workdir
working-directory: /mnt/workdir
run: |
df -hT $PWD
git clone $REPO_URL -b $REPO_BRANCH openwrt
ln -sf /workdir/openwrt $GITHUB_WORKSPACE/openwrt
ln -sf /mnt/workdir/openwrt $GITHUB_WORKSPACE/openwrt
cd openwrt
useVersionInfo=$(git show -s --date=short --format="Author: %an<br/>date: %cd<br/>commit: %s<br/>commit hash: %H")
echo "useVersionInfo=$useVersionInfo" >> $GITHUB_ENV
Expand Down
Loading

0 comments on commit 8ff0daa

Please sign in to comment.