From fae14e71eaa6a81c3cbabe7b2de559a27015dc52 Mon Sep 17 00:00:00 2001 From: acheronfail Date: Tue, 19 Dec 2023 12:05:31 +1030 Subject: [PATCH] add crystal --- .github/workflows/ci.yml | 9 +++++++-- count.rb | 2 +- justfile | 3 +++ 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c0fdb17..b493344 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,6 +15,7 @@ jobs: build: - bun - clang + - crystal - deno - erlang - fortran @@ -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' 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