Skip to content

Commit 78e5982

Browse files
committed
Refactor GitHub Actions workflow: replace ImageMagick installation with pnpm setup and streamline icon generation process.
1 parent 63c6fc9 commit 78e5982

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,18 @@ jobs:
2323
- name: Set up Android SDK
2424
uses: android-actions/setup-android@v3
2525

26-
- name: Compile and Install ImageMagick from Source
27-
run: |
28-
sudo apt-get update
29-
sudo apt-get install -y build-essential libjpeg-dev libpng-dev libtiff-dev libgif-dev
30-
wget https://imagemagick.org/download/ImageMagick.tar.gz
31-
tar xvzf ImageMagick.tar.gz
32-
cd ImageMagick-*
33-
./configure
34-
make
35-
sudo make install
36-
sudo ldconfig /usr/local/lib
37-
magick --version
26+
- uses: pnpm/action-setup@v3
27+
with:
28+
version: latest
29+
30+
- name: Sync node version and setup cache
31+
uses: actions/setup-node@v4
32+
with:
33+
node-version: 20
34+
cache: pnpm
3835

3936
- name: Generate Android Icons
40-
run: |
41-
chmod +x scripts/generate_icons.sh
42-
./scripts/generate_icons.sh
37+
run: pnpm icon
4338

4439
- name: Grant Execute Permission for Gradle
4540
run: chmod +x ./gradlew

0 commit comments

Comments
 (0)