@@ -269,36 +269,11 @@ jobs:
269269 git config --global user.name "Numbersf"
270270 git config --global user.email "263623064@qq.com"
271271
272- - name : Configure APTC
273- run : |
274- APT_CACHE_DIR="$HOME/apt-cache"
275- mkdir -p "$APT_CACHE_DIR"/{archives,lists/partial}
276- echo "Dir::Cache \"$APT_CACHE_DIR\";" | sudo tee /etc/apt/apt.conf.d/90user-cache
277- echo "Dir::Cache::archives \"$APT_CACHE_DIR/archives\";" | sudo tee -a /etc/apt/apt.conf.d/90user-cache
278- echo "Dir::State::lists \"$APT_CACHE_DIR/lists\";" | sudo tee -a /etc/apt/apt.conf.d/90user-cache
279- echo "Acquire::Check-Valid-Until \"false\";" | sudo tee -a /etc/apt/apt.conf.d/90user-cache
280- echo "Acquire::Languages \"none\";" | sudo tee -a /etc/apt/apt.conf.d/90user-cache
281- sudo chown -R $USER:$USER "$APT_CACHE_DIR"
282-
283- - name : Set APT Cache
284- uses : actions/cache@v3
285- with :
286- path : ${{ env.HOME }}/apt-cache
287- key : ${{ runner.os }}-apt-${{ hashFiles('.github/workflows/Build SukiSU Ultra OnePlus.yml') }}
288- restore-keys : |
289- ${{ runner.os }}-apt-
290-
291- - name : Install Dependencies
292- run : |
293- sudo rm -f /var/lib/apt/lists/lock /var/lib/dpkg/lock
294- APT_CACHE_DIR="$HOME/apt-cache"
295- mkdir -p "$APT_CACHE_DIR/lists/partial"
296- sudo apt -o Dir::Cache="$APT_CACHE_DIR" update -qq
297- sudo DEBIAN_FRONTEND=noninteractive apt -o Dir::Cache="$APT_CACHE_DIR" install -yq --no-install-recommends \
298- python3 git curl ccache libelf-dev \
299- build-essential flex bison libssl-dev \
300- libncurses-dev liblz4-tool zlib1g-dev \
301- libxml2-utils rsync unzip
272+ - name : Install Dependencies + APTC
273+ uses : awalsh128/cache-apt-pkgs-action@latest
274+ with :
275+ packages : python3 git curl ccache libelf-dev build-essential flex bison libssl-dev libncurses-dev liblz4-tool zlib1g-dev libxml2-utils rsync unzip gawk
276+ execute_install_scripts : true
302277
303278 - name : Restore Ccache
304279 uses : actions/cache@v3
0 commit comments