Skip to content

Commit 3351d9b

Browse files
committed
chore: remove a bunch of slow builds to iterate faster
1 parent c714045 commit 3351d9b

File tree

3 files changed

+30
-18
lines changed

3 files changed

+30
-18
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,17 @@ jobs:
3030
include:
3131
- os: "ubuntu-24.04"
3232
platform: "linux-x64"
33-
- os: "ubuntu-24.04"
34-
platform: "linux-armv6"
35-
- os: "ubuntu-24.04"
36-
platform: "win32-x64"
37-
- os: "macos-15-intel"
38-
platform: "darwin-x64"
39-
- os: "macos-15"
40-
platform: "darwin-arm64v8"
41-
- os: "ubuntu-24.04-arm"
42-
platform: "linux-arm64v8"
33+
# FIXME enable this back
34+
# - os: "ubuntu-24.04"
35+
# platform: "linux-armv6"
36+
# - os: "ubuntu-24.04"
37+
# platform: "win32-x64"
38+
# - os: "macos-15-intel"
39+
# platform: "darwin-x64"
40+
# - os: "macos-15"
41+
# platform: "darwin-arm64v8"
42+
# - os: "ubuntu-24.04-arm"
43+
# platform: "linux-arm64v8"
4344
steps:
4445
- name: Checkout
4546
uses: actions/checkout@v4
@@ -78,7 +79,7 @@ jobs:
7879
- name: Populate npm workspace
7980
run: ./populate-npm-workspace.sh
8081
- name: Create npm workspace tarball
81-
run: tar -vcaf npm-workspace.tar.xz -C npm .
82+
run: ls -l && tar -vcaf npm-workspace.tar.xz -C npm .
8283
- name: Generate release notes
8384
run: ./generate-release-notes.sh
8485
- name: Package individual npm packages
@@ -87,7 +88,7 @@ jobs:
8788
if: startsWith(github.ref, 'refs/tags/v')
8889
uses: ncipollo/release-action@v1
8990
with:
90-
artifacts: "*.tar.xz"
91+
artifacts: "*.tar.*"
9192
artifactContentType: application/x-xz
9293
bodyFile: release-notes.md
9394
draft: true

package-npm-packages.sh

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
11
#!/usr/bin/env bash
22
set -e
33

4+
ls -la
5+
cd npm
6+
ls -la
47

58
for dir in */; do
6-
[ -d "$dir" ] && tar -cJf "sharp-libvips-${dir%/}-1.2.5.tar.xz" "$dir"
9+
[ -d "$dir" ] && tar -cvzf "../sharp-libvips-${dir%/}-1.2.6.tar.gz" -C "$dir" .
710
done

populate-npm-workspace.sh

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -53,17 +53,21 @@ remove_unused() {
5353
}
5454

5555
# Download and extract per-platform binaries
56-
PLATFORMS=$(ls platforms --ignore=win32*)
56+
# FIXME enable this back
57+
# PLATFORMS=$(ls platforms --ignore=win32*)
58+
PLATFORMS=$(ls platforms -Iwin* -Idarwin* -Ilinux-arm*)
5759
for platform in $PLATFORMS; do
5860
extract "$platform"
5961
done
60-
for platform in x64; do
61-
extract "win32-$platform"
62-
done
62+
# FIXME enable this back
63+
# for platform in x64; do
64+
# extract "win32-$platform"
65+
# done
6366

6467
# Common header and source files
6568
cp -r npm/linux-x64/{include,versions.json,THIRD-PARTY-NOTICES.md} npm/dev/
66-
cp -r npm/win32-x64/include npm/dev/
69+
# FIXME enable this back
70+
# cp -r npm/win32-x64/include npm/dev/
6771
find npm/dev/include/ -maxdepth 1 -type f -links +1 -delete
6872
for source in VConnection VError VImage VInterpolate VRegion vips-operators; do
6973
download_cpp "$source"
@@ -72,6 +76,10 @@ done;
7276
# Generate README files
7377
PACKAGES=$(jq -r '.workspaces[]' "npm/package.json")
7478
for package in $PACKAGES; do
79+
# FIXME enable this back
80+
if [[ "$package" != "linux-x64" && "$package" != "dev" ]]; then
81+
continue
82+
fi
7583
generate_readme "$package"
7684
generate_index "$package"
7785
remove_unused "$package"

0 commit comments

Comments
 (0)