From 9c485360e0733dda443b2d8507e82dbbf827af16 Mon Sep 17 00:00:00 2001 From: Julien Elbaz Date: Sun, 21 Jul 2024 08:13:16 +0200 Subject: [PATCH] upgrade to crystal 1.13 --- .github/workflows/build.yml | 4 ++-- .github/workflows/release.yml | 6 +++--- Dockerfile | 6 +++--- README.md | 3 ++- shard.yml | 2 +- 5 files changed, 11 insertions(+), 10 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 29293c0..65fcb38 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -27,7 +27,7 @@ jobs: export LLVM_CONFIG="$(brew --prefix)/opt/llvm@18/bin/llvm-config" shards build crystalline --release --no-debug -Dpreview_mt --stats --progress --ignore-crystal-version - name: Upload a Build Artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: crystalline_${{ matrix.runner == 'macos-latest' && 'arm64' || 'x86_64' }}-apple-darwin path: ./bin/crystalline @@ -42,7 +42,7 @@ jobs: run: | docker run -v $PWD:/app/host --rm crystalline:latest cp ./bin/crystalline ./host/crystalline - name: Upload a Build Artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: crystalline_x86_64-unknown-linux-musl path: ./crystalline diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6643937..f3034bc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: export LLVM_CONFIG="$(brew --prefix)/opt/llvm@18/bin/llvm-config" shards build crystalline --release --no-debug -Dpreview_mt --stats --progress --ignore-crystal-version - name: Upload a Build Artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: crystalline_${{ matrix.runner == 'macos-latest' && 'arm64' || 'x86_64' }}-apple-darwin path: ./bin/crystalline @@ -41,7 +41,7 @@ jobs: run: | docker run -v $PWD:/app/host --rm crystalline:latest cp ./bin/crystalline ./host/crystalline - name: Upload a Build Artifact - uses: actions/upload-artifact@v2 + uses: actions/upload-artifact@v4 with: name: crystalline_x86_64-unknown-linux-musl path: ./crystalline @@ -50,7 +50,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Download artifacts - uses: actions/download-artifact@v2 + uses: actions/download-artifact@v4 with: path: ./artifacts - name: Compress artifacts diff --git a/Dockerfile b/Dockerfile index 87a436c..7d2c322 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,15 +1,15 @@ -FROM crystallang/crystal:1.12.1-alpine +FROM crystallang/crystal:1.13.2-alpine WORKDIR /app # Add llvm deps. RUN apk add --update --no-cache --force-overwrite \ - llvm15-dev llvm15-static g++ libxml2-static make + llvm15-dev llvm15-static g++ libxml2-static zstd-static make # Build crystalline. COPY . /app/ -RUN git clone -b 1.11.2 --depth=1 https://github.com/crystal-lang/crystal \ +RUN git clone -b 1.13.2 --depth=1 https://github.com/crystal-lang/crystal \ && make -C crystal llvm_ext \ && CRYSTAL_PATH=crystal/src:lib shards build crystalline \ --no-debug --progress --stats --production --static --release \ diff --git a/README.md b/README.md index 8392100..bbf187f 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,8 @@ Building from source does take a long time._ | Crystal | Crystalline | | -------- | ----------- | -| **1.12** | **0.13** | +| **1.13** | **0.14** | +| 1.12 | 0.13 | | 1.11 | 0.12 | | 1.10 | 0.11 | | 1.9 | 0.10 | diff --git a/shard.yml b/shard.yml index a778b04..e4f3586 100644 --- a/shard.yml +++ b/shard.yml @@ -1,5 +1,5 @@ name: crystalline -version: 0.13.1 +version: 0.14.0 authors: - Julien Elbaz