generated from alex/base-template
Add Ameba #62
Labels
No labels
dependencies
No milestone
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
alex/runner-image#62
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
We consider Ameba part of our toolbox now: https://github.com/crystal-ameba/ameba
Let's add it to the image, possibly pulling from a Docker repo
/pi new PR
No Docker available locally, so I'll follow the existing pattern: build Ameba from source in the Crystal stage and copy the binary over.The
shard.ymlconfirmssrc/cli.cris the ameba target main file. Creating the PR:PR created: #63What it does — adds Ameba (Crystal linter) to the runner image:
ameba-builderstage reusing the existingdocker.io/crystallang/crystal:1base, pinned toAMEBA_VERSION=v1.7.0(latest tag). Upstream doesn't publish an official prebuilt image, so it's built from source:shards install --without-development && crystal build src/cli.cr --release./usr/local/bin/ameba, following the same pattern as the other multi-stage copies.ameba --versionadded to the build-time version checks so the build fails fast if the binary is broken or missing shared libs.Note: I couldn't build-test locally (no Docker available in this environment), so the daily CI build will be the first validation.
View action run | Model: zai/glm-5.3-flash (thinking: low) | Time: 3m 13s | Tokens: 167.2K | Cost: $0.01 | Pi SDK v1.2.0 | Action v2.30.0-develop (develop @ 4ddb1db)