diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0fdb17..2460b63 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,7 @@ jobs: build: - bun - clang + - crystal - deno - erlang - fortran @@ -56,7 +57,10 @@ jobs: 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 + curl -sSL https://dist.crystal-lang.org/apt/setup.sh | sudo bash + + 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' diff --git a/count.rb b/count.rb index 882f469..11cd1da 100644 --- a/count.rb +++ b/count.rb @@ -3,4 +3,4 @@ i += 1 end -print i \ No newline at end of file +puts i \ No newline at end of file diff --git a/justfile b/justfile index 72e6e5d..0bbd8ff 100644 --- a/justfile +++ b/justfile @@ -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