Skip to content

Commit

Permalink
upgrade to crystal 1.13
Browse files Browse the repository at this point in the history
  • Loading branch information
elbywan committed Sep 14, 2024
1 parent 7bd95d9 commit 9c48536
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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 \
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: crystalline
version: 0.13.1
version: 0.14.0

authors:
- Julien Elbaz <[email protected]>
Expand Down

0 comments on commit 9c48536

Please sign in to comment.