crystal-lang / distribution-scripts

40 stars 24 forks source link

Clean up build artifacts #180

Open straight-shoota opened 2 years ago

straight-shoota commented 2 years ago

The following files are currently produced as build artifacts of the nightly release workflow on circleci (see https://app.circleci.com/pipelines/github/crystal-lang/crystal/8502/workflows/77e21f43-14ad-4840-91c7-53a30649ca20/jobs/68065).

crystal-1.4.0-dev-1-darwin-universal.tar.gz (46 MB)
crystal-1.4.0-dev-1-linux-x86_64-bundled.tar (95 MB) ❌
crystal-1.4.0-dev-1-linux-x86_64-bundled.tar.gz (30 MB)
crystal-1.4.0-dev-1-linux-x86_64.tar (94 MB) ❌
crystal-1.4.0-dev-1-linux-x86_64.tar.gz (29 MB)
crystal-1.4.0-dev-1-linux-x86_64.tar.xz (19 MB) ❓
crystal-1.4.0-dev-1.universal.pkg (46 MB)
crystal-1.4.0-dev-docs.tar.gz (13 MB)
crystal_1.4.0-dev_amd64.snap (24 MB) ❓
docker-1.4.0-dev-alpine-build.tar.gz (262 MB) ❓
docker-1.4.0-dev-alpine.tar.gz (173 MB) ❓
docker-1.4.0-dev-ubuntu-x86_64-build.tar.gz (370 MB) ❓
docker-1.4.0-dev-ubuntu-x86_64.tar.gz (208 MB) ❓
versions-1.4.0-dev.json (2.1 kB) ❌

I'm wondering about the purpose of some of them. I suppose some are just intermediary steps that just happen do end up being published.

This initiative is related to https://github.com/crystal-lang/crystal/pull/11902.

Some of these artifacts probably don't need to be pushed at all, others may be useful for debugging but don't need to be made publicly available.

straight-shoota commented 2 years ago

For reference, these are the files published on the last GitHub release (https://github.com/crystal-lang/crystal/releases/tag/1.3.2):

crystal-1.3.2-1-darwin-universal.tar.gz (43.8 MB) 2.5k
crystal-1.3.2-1-linux-x86_64-bundled.tar.gz (28.3 MB) 162
crystal-1.3.2-1-linux-x86_64.tar.gz (27.9 MB) 12.0k
crystal-1.3.2-1.universal.pkg (43.8 MB) 41
crystal-1.3.2-docs.tar.gz (12.1 MB) 30
crystal-1.3.2-windows-x86_64-msvc-unsupported.zip 30.8 MB 167

(The numbers at the end are the numbers of downloads.)

This also sparks the question whether the darwin .pkg is actually useful when almost everyone uses the .tar.gz. I don't even know if there's a significant difference between the two formats.