From 59c1a1edbbe8530341da2f36440fefda42897b8e Mon Sep 17 00:00:00 2001 From: Ellis Kenyo Date: Fri, 17 Jan 2025 12:01:11 +0000 Subject: [PATCH 1/2] Update to use main again Also update the test to verify that JIT is working, since + will just call the function --- Formula/jank.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Formula/jank.rb b/Formula/jank.rb index 5a0304d..02b1c98 100644 --- a/Formula/jank.rb +++ b/Formula/jank.rb @@ -1,7 +1,7 @@ class Jank < Formula desc "Native Clojure dialect hosted on LLVM" homepage "https://jank-lang.org" - url "https://github.com/jank-lang/jank.git", branch: "system-boehm" + url "https://github.com/jank-lang/jank.git", branch: "main" version "0.1" license "MPL-2.0" @@ -47,7 +47,7 @@ def install jank = bin/"jank" (testpath/"test.jank").write <<~JANK - (+ 5 7) + ((fn [] (+ 5 7))) JANK assert_equal "12", shell_output("#{jank} run test.jank").strip.lines.last From 6f1a447349715c6194cf3c9dfb9062728ab6ecfc Mon Sep 17 00:00:00 2001 From: Ellis Kenyo Date: Fri, 17 Jan 2025 12:08:56 +0000 Subject: [PATCH 2/2] Remove brew test-bot from CI Due to git-lfs being used, brew test-bot doesn't work right. --- .github/workflows/test.yml | 8 -------- Formula/jank.rb | 1 + 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 96225b0..eabdb94 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -24,14 +24,6 @@ jobs: key: ${{ matrix.os }}-rubygems-${{ steps.set-up-homebrew.outputs.gems-hash }} restore-keys: ${{ matrix.os }}-rubygems- - - run: brew test-bot --only-cleanup-before - - - run: brew test-bot --only-setup - - - run: brew test-bot --only-tap-syntax - - - run: brew test-bot --only-formulae - - run: brew install git-lfs && git lfs install && sudo ln -s "$(which git-lfs)" "$(git --exec-path)/git-lfs" - run: brew install jank && brew test jank && file "$(brew --prefix)/bin/jank" diff --git a/Formula/jank.rb b/Formula/jank.rb index 02b1c98..1c8f23b 100644 --- a/Formula/jank.rb +++ b/Formula/jank.rb @@ -27,6 +27,7 @@ def install inreplace "compiler+runtime/cmake/install.cmake", '\\$ORIGIN', jank_install_dir + if OS.mac? ENV["SDKROOT"] = MacOS.sdk_path else