Skip to content

Commit

Permalink
Use Crystal 1.1 in CI
Browse files Browse the repository at this point in the history
I noticed that CI failed because it couldn't find 1.0.0:
https://github.com/84codes/sparoid/runs/3166205736?check_suite_focus=true#step:3:48

Apparently their new repo ("openSUSE Build Service") will only host the latest release:
crystal-lang/crystal#10949 (comment)

...but there's no Docker image for 1.1.1 right now.

Also no need to compile src/ext/sigfault.c since crystal-lang/crystal#10463
  • Loading branch information
dentarg authored and carlhoerberg committed Jul 28, 2021
1 parent 34cd303 commit 7260036
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
lint:
name: Spec
runs-on: ubuntu-20.04
container: crystallang/crystal:1.0.0
container: crystallang/crystal:1.1.0

steps:
- name: Checkout
Expand All @@ -17,7 +17,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Shards install
run: shards install --ignore-crystal-version
run: shards install

- name: Spec
run: crystal spec --no-color --order random
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deb.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: |
wget https://crystal-lang.org/install.sh
chmod +x install.sh
sudo ./install.sh --crystal=1.0.0
sudo ./install.sh --crystal=1.1.1
- name: Checkout
uses: actions/checkout@v2
Expand Down
5 changes: 0 additions & 5 deletions build/cross-compile-with-docker
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,6 @@ docker run --rm --platform arm64 -v "$PWD":/work -i "$image" /bin/bash << EOF
set -eux
apt-get update
apt-get install -y wget clang libssl-dev libpcre3-dev libgc-dev libevent-dev zlib1g-dev
wget https://raw.githubusercontent.com/crystal-lang/crystal/1.0.0/src/ext/sigfault.c
cc -c -o sigfault.o sigfault.c
ar -rcs libcrystal.a sigfault.o
mkdir -p /usr/share/crystal/src/ext
cp libcrystal.a /usr/share/crystal/src/ext/
cd /work
cc -Wall -O3 -c lib/fdpass/src/fdpass.c -o lib/fdpass/src/fdpass.o
Expand Down
2 changes: 1 addition & 1 deletion shard.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ dependencies:
fdpass:
github: 84codes/fdpass.cr

crystal: 1.0.0
crystal: 1.1.1

license: MIT

0 comments on commit 7260036

Please sign in to comment.