Skip to content

Commit

Permalink
Speed up cache
Browse files Browse the repository at this point in the history
  • Loading branch information
YT-Advanced committed May 25, 2023
1 parent 21d134e commit e05794e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 14 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,10 @@ jobs:
cache: 'pip'
cache-dependency-path: scripts/

- name: Update Package and Setup Python3 Virtual Enviroment 👷
- name: Setup Python3 Virtual Enviroment 🐍
working-directory: scripts
run: |
sudo apt-get update
sudo apt-get install -y lzip
PYTHON_VENV_DIR="$(dirname "$PWD")/python3-env"
python3 -m venv "$PYTHON_VENV_DIR" || abort "Failed to create python3 virtual env"
# shellcheck disable=SC1091
Expand All @@ -44,9 +43,9 @@ jobs:
deactivate
- name: Install Ubuntu Dependencies 🧑‍🏭
uses: awalsh128/cache-apt-pkgs-action@latest
uses: sn-o-w/cache-apt-pkgs-action@master
with:
packages: ca-certificates patchelf e2fsprogs aria2 p7zip-full attr unzip xz-utils qemu-utils python3-venv
packages: ca-certificates patchelf e2fsprogs aria2 p7zip-full attr unzip xz-utils qemu-utils python3-venv lzip

This comment has been minimized.

Copy link
@sn-o-w

sn-o-w May 29, 2023

Contributor

@YT-Advanced There's an issue with awalsh128/cache-apt-pkgs-action that prevents lzip from getting installed properly.

A similar issue was already reported, but I also posted in the same "thread": awalsh128/cache-apt-pkgs-action#99 (comment)

As far as I know, lzip is used for OpenGapps while at the integration stage. Most likely the only use? So given that you removed OpenGapps, you can get rid of lzip, I guess.

I'll keep it in my own repo only for legacy reasons.

This comment has been minimized.

Copy link
@YT-Advanced

YT-Advanced May 30, 2023

Author Owner

lzip also use for compress work. So cannot remove it

This comment has been minimized.

Copy link
@sn-o-w

sn-o-w May 30, 2023

Contributor

lzip also use for compress work. So cannot remove it

Are you sure about that? 🤣

https://github.com/sn-o-w/WSA-Script/actions

2303 and 2304 builds, 7z & xz & zip, all built without lzip. 😆

This comment has been minimized.

Copy link
@YT-Advanced

YT-Advanced May 31, 2023

Author Owner

@sn-o-w I have removed it as soon as you commented to remove it :))) Sorry about my wrong, I have thought that you are mentioning p7zip :)))

version: 1.0

- name: Build WSA ${{ matrix.arch }} with GAPPS ${{ matrix.root }} 🏗️
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/comment_on_issues.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ jobs:
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
sudo apt-get update
sudo apt-get install -y lzip
python3 -m pip install --upgrade pip setuptools
python3 -m pip install --upgrade setuptools
- name: Get Issues Info
id: get-issues
Expand Down Expand Up @@ -167,9 +166,9 @@ jobs:

- name: Install Ubuntu Dependencies
if: env.iscustom == 'true' && success()
uses: awalsh128/cache-apt-pkgs-action@latest
uses: sn-o-w/cache-apt-pkgs-action@master
with:
packages: ca-certificates patchelf e2fsprogs aria2 p7zip-full attr unzip xz-utils qemu-utils python3-venv
packages: ca-certificates patchelf e2fsprogs aria2 p7zip-full attr unzip xz-utils qemu-utils python3-venv lzip
version: 1.0

- name: Setup Python3 Virtual Enviroment
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/custom_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ jobs:
- name: Checkout ♻️
uses: actions/checkout@v3

- name: Get WSA Preview build
- name: Get WSA Insider Preview build 🏭
if: ${{ inputs.release_type == 'Insider Private'}}
shell: python
run: |
Expand All @@ -94,19 +94,18 @@ jobs:
with open(env_file, "a") as wr:
wr.write("LINK=" + str['browser_download_url'])
- name: Setup Python 🏭
- name: Setup Python 👷
uses: actions/setup-python@v4
with:
check-latest: true
python-version: '3.x'
cache: 'pip'
cache-dependency-path: scripts/

- name: Update Package and Setup Python3 Virtual Enviroment 👷
- name: Setup Python3 Virtual Enviroment 🐍
working-directory: scripts
run: |
sudo apt-get update
sudo apt-get install -y lzip
PYTHON_VENV_DIR="$(dirname "$PWD")/python3-env"
python3 -m venv "$PYTHON_VENV_DIR" || abort "Failed to create python3 virtual env"
# shellcheck disable=SC1091
Expand All @@ -118,9 +117,9 @@ jobs:
deactivate
- name: Install Ubuntu Dependencies 🧑‍🏭
uses: awalsh128/cache-apt-pkgs-action@latest
uses: sn-o-w/cache-apt-pkgs-action@master
with:
packages: ca-certificates patchelf e2fsprogs aria2 p7zip-full attr unzip xz-utils qemu-utils python3-venv
packages: ca-certificates patchelf e2fsprogs aria2 p7zip-full attr unzip xz-utils qemu-utils python3-venv lzip
version: 1.0

- name: Download WSA Preview build + VCLibs 14 + UI XAML manually 🧙🏻‍♂️
Expand Down

0 comments on commit e05794e

Please sign in to comment.