Skip to content

Commit

Permalink
Crystal 1.15.1 and shards 0.19.1
Browse files Browse the repository at this point in the history
  • Loading branch information
spuun committed Feb 4, 2025
1 parent a2401be commit b37d2e1
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 13 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ on:
- cron: '45 4 * * *'

env:
crystal_version: 1.15.0
shards_version: 0.19.0
crystal_version: 1.15.1
shards_version: 0.19.1
gc_version: 8.2.8

permissions:
Expand Down
4 changes: 2 additions & 2 deletions alpine/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,14 @@ RUN apk add --update --no-cache \
ARG TARGETARCH
# Build crystal
WORKDIR /usr/src/crystal
ARG crystal_version=1.15.0
ARG crystal_version=1.15.1
RUN git clone --depth=1 --single-branch --branch=$crystal_version https://github.com/crystal-lang/crystal.git . && \
gzip -9 man/crystal.1 && \
mkdir .build && \
make crystal static=1 release=1 target=$TARGETARCH-alpine-linux-musl PREFIX=/usr FLAGS="--no-debug" | tail -1 > .build/crystal.sh
# Build shards
WORKDIR /usr/src/shards
ARG shards_version=0.18.0
ARG shards_version=0.19.1
RUN git clone --depth=1 --single-branch --branch=v${shards_version} https://github.com/crystal-lang/shards.git . && \
gzip -9 man/shards.1 man/shard.yml.5 && \
make bin/shards static=1 release=1 FLAGS="--no-debug --cross-compile --target=$TARGETARCH-alpine-linux-musl" | tail -1 > bin/shards.sh
Expand Down
4 changes: 2 additions & 2 deletions centos/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG base_image=quay.io/centos/centos
ARG base_image_tag=stream9
ARG crystal_version=1.15.0
ARG crystal_version=1.15.1

# Copy the statically compiled compiler from this image
FROM --platform=$BUILDPLATFORM 84codes/crystal:latest-alpine AS alpine
Expand Down Expand Up @@ -33,7 +33,7 @@ RUN git clone --depth=1 --single-branch --branch=$crystal_version https://github
PREFIX=/usr FLAGS="--no-debug" CRYSTAL_CONFIG_LIBRARY_PATH=/usr/lib64/crystal | tail -1 > .build/crystal.sh
# Build shards
WORKDIR /tmp/shards
ARG shards_version=0.18.0
ARG shards_version=0.19.1
RUN git clone --depth=1 --single-branch --branch=v${shards_version} https://github.com/crystal-lang/shards.git . && \
gzip -9 man/shards.1 man/shard.yml.5 && \
make bin/shards FLAGS="--release --no-debug --cross-compile --target=$TARGETARCH-unknown-linux-gnu" | tail -1 > bin/shards.sh
Expand Down
2 changes: 1 addition & 1 deletion debian-static/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG base_image=ubuntu
ARG codename=focal
ARG crystal_version=1.15.0
ARG crystal_version=1.15.1

# Copy the statically compiled compiler from this image
FROM 84codes/crystal:${crystal_version}-alpine AS alpine
Expand Down
4 changes: 2 additions & 2 deletions debian/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG base_image=debian
ARG codename=bookworm
ARG crystal_version=1.15.0
ARG crystal_version=1.15.1
ARG llvm_version=15

# Copy the statically compiled compiler from this image
Expand Down Expand Up @@ -31,7 +31,7 @@ RUN git clone --depth=1 --single-branch --branch=$crystal_version https://github
rm -f src/llvm/ext/llvm_ext.o
# Build shards
WORKDIR /tmp/shards
ARG shards_version=0.17.3
ARG shards_version=0.19.1
RUN git clone --depth=1 --single-branch --branch=v${shards_version} https://github.com/crystal-lang/shards.git . && \
gzip -9 man/shards.1 man/shard.yml.5 && \
make bin/shards FLAGS="--release --no-debug --cross-compile --target=$TARGETARCH-unknown-linux-gnu" | tail -1 > bin/shards.sh
Expand Down
4 changes: 2 additions & 2 deletions fedora/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
ARG base_image=fedora
ARG base_image_tag=40
ARG crystal_version=1.15.0
ARG crystal_version=1.15.1

# Copy the statically compiled compiler from this image
FROM --platform=$BUILDPLATFORM 84codes/crystal:latest-alpine AS alpine
Expand Down Expand Up @@ -34,7 +34,7 @@ RUN git clone --depth=1 --single-branch --branch=$crystal_version https://github
rm -f src/llvm/ext/llvm_ext.o
# Build shards
WORKDIR /usr/src/shards
ARG shards_version=0.17.4
ARG shards_version=0.19.1
RUN git clone --depth=1 --single-branch --branch=v${shards_version} https://github.com/crystal-lang/shards.git . && \
gzip -9 man/shards.1 man/shard.yml.5 && \
make bin/shards FLAGS="--release --no-debug --cross-compile --target=$TARGETARCH-unknown-linux-gnu" | tail -1 > bin/shards.sh
Expand Down
4 changes: 2 additions & 2 deletions pkgs/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Copy the statically compiled compiler from the alpine image
ARG crystal_version=1.15.0
ARG crystal_version=1.15.1
FROM 84codes/crystal:${crystal_version}-alpine-latest AS alpine

# build deb and rpm packages
Expand All @@ -26,7 +26,7 @@ COPY --from=alpine /usr/share/man/man1/crystal.1.gz pkg/usr/share/man/man1/
COPY --from=alpine /usr/share/man/man1/shards.1.gz pkg/usr/share/man/man1/
COPY --from=alpine /usr/share/man/man5/shard.yml.5.gz pkg/usr/share/man/man5/
RUN mkdir -p pkg/usr/lib && cp /usr/lib/libgc.a pkg/usr/lib/
ARG crystal_version=1.15.0
ARG crystal_version=1.15.1
ARG pkg_revision=1
RUN fpm -s dir -t deb -n crystal -v ${crystal_version} --iteration ${pkg_revision} -a native \
--url https://crystal-lang.org --maintainer "84codes <[email protected]>" \
Expand Down

0 comments on commit b37d2e1

Please sign in to comment.