Skip to content

Commit

Permalink
add crystal
Browse files Browse the repository at this point in the history
  • Loading branch information
acheronfail committed Dec 19, 2023
1 parent fae10c3 commit fae14e7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ jobs:
build:
- bun
- clang
- crystal
- deno
- erlang
- fortran
Expand Down Expand Up @@ -55,8 +56,12 @@ jobs:
- uses: denoland/setup-deno@v1
with:
deno-version: "~1"
- run: |
sudo apt install -y build-essential cargo clang curl erlang gfortran haskell-platform jq kotlin moreutils nodejs php rustc scala tar wget xz-utils
- name: Install dependencies
run: |
curl -fsSL https://crystal-lang.org/install.sh | sudo bash -s -- --channel=stable
sudo apt update
sudo apt install -y build-essential cargo clang crystal curl erlang gfortran haskell-platform jq kotlin moreutils nodejs php rustc scala tar wget xz-utils
cargo install timers
cargo install hyperfine
cargo install ripgrep --features 'pcre2'
Expand Down
2 changes: 1 addition & 1 deletion count.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
i += 1
end

print i
puts i
3 changes: 3 additions & 0 deletions justfile
Original file line number Diff line number Diff line change
Expand Up @@ -104,3 +104,6 @@ build-php: (_check "php")
build-erlang: (_check "erlc erl")
erlc count.erl
echo 'erl -noshell -s count start -s init stop' > CMD

build-crystal: (_check "crystal")
echo 'crystal run ./count.rb' > CMD

0 comments on commit fae14e7

Please sign in to comment.