From d0846d16497244a11e37ddf3750c3046d52e2560 Mon Sep 17 00:00:00 2001 From: June <33167175+UnrelatedString@users.noreply.github.com> Date: Tue, 25 Mar 2025 15:12:21 -0400 Subject: [PATCH 01/27] Update LICENSE --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index 311379c1..b028b9cb 100644 --- a/LICENSE +++ b/LICENSE @@ -1,4 +1,4 @@ -Copyright 2018 PureScript +Copyright 2018-2025 PureScript, Unisay, UnrelatedString Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: From 61f13835da55bb6a48244af2f8c5da897caacbcd Mon Sep 17 00:00:00 2001 From: June <33167175+UnrelatedString@users.noreply.github.com> Date: Tue, 25 Mar 2025 15:13:12 -0400 Subject: [PATCH 02/27] Update ci.yml just the way I like it :3 --- .github/workflows/ci.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 07fb36b9..55725b38 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,21 +1,19 @@ name: CI on: - push: - branches: [master] - pull_request: + push jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - uses: purescript-contrib/setup-purescript@main with: purescript: "unstable" - - uses: actions/setup-node@v2 + - uses: actions/setup-node@v4 with: node-version: "14.x" From b4a2958ae430c0b45ca22f614832dff9a0fd0c19 Mon Sep 17 00:00:00 2001 From: June <33167175+UnrelatedString@users.noreply.github.com> Date: Tue, 25 Mar 2025 15:17:37 -0400 Subject: [PATCH 03/27] ...let's start by using my usual CI action for Spago on Node... --- .github/workflows/ci.yml | 33 +++++++++++++-------------------- 1 file changed, 13 insertions(+), 20 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 55725b38..808c41d0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,32 +1,25 @@ name: CI - -on: - push +on: [push] jobs: - build: + test: runs-on: ubuntu-latest + steps: - uses: actions/checkout@v4 - - uses: purescript-contrib/setup-purescript@main - with: - purescript: "unstable" - - - uses: actions/setup-node@v4 + - name: Set up Node 20 + uses: actions/setup-node@v4 with: - node-version: "14.x" + node-version: "20.x" - - name: Install dependencies + - name: Set up Purescript and Spago run: | - npm install -g bower - npm install - bower install --production + npm i -g purescript + npm i -g spago@next - - name: Build source - run: npm run-script build + - name: Build + run: spago build --strict - - name: Run tests - run: | - bower install - npm run-script test --if-present + - name: Test + run: spago test --strict From f83422ee463d344cbcc93ed512c79845129172fe Mon Sep 17 00:00:00 2001 From: June <33167175+UnrelatedString@users.noreply.github.com> Date: Tue, 25 Mar 2025 15:37:58 -0400 Subject: [PATCH 04/27] =?UTF-8?q?=E2=80=A6except=20with=20legacy=20Spago?= =?UTF-8?q?=20because=20I=20feel=20like=20porting=20to=20Next=20is=20out?= =?UTF-8?q?=20of=20scope=20for=20what=20I=E2=80=99m=20doing=20at=20the=20m?= =?UTF-8?q?oment=20:P?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 808c41d0..049043ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,7 +16,7 @@ jobs: - name: Set up Purescript and Spago run: | npm i -g purescript - npm i -g spago@next + npm i -g spago - name: Build run: spago build --strict From 968a2e99f6c004def7c5d12cd3f9d5a1092fc2c7 Mon Sep 17 00:00:00 2001 From: June <33167175+UnrelatedString@users.noreply.github.com> Date: Tue, 25 Mar 2025 15:41:59 -0400 Subject: [PATCH 05/27] Already beginning to regret sticking with legacy Spago :/ --- .github/workflows/ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 049043ca..ec23e5c4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: npm i -g spago - name: Build - run: spago build --strict + run: spago build - name: Test - run: spago test --strict + run: spago test From 5ab5bbbfa97aece2a677cafa8548c17efe0d3694 Mon Sep 17 00:00:00 2001 From: June <33167175+UnrelatedString@users.noreply.github.com> Date: Tue, 25 Mar 2025 20:22:56 -0400 Subject: [PATCH 06/27] =?UTF-8?q?Update=20spago.dhall=20because=20of=20cou?= =?UTF-8?q?rse=20the=20test=20directory=20just=20DIDN=E2=80=99T=20EXIST=20?= =?UTF-8?q?in=20the=20manifest?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spago.dhall | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spago.dhall b/spago.dhall index 9b25c8ac..e3fa7cb8 100644 --- a/spago.dhall +++ b/spago.dhall @@ -1,5 +1,5 @@ { name = "purescript-lua-prelude" , dependencies = [ ] : List Text , packages = ./packages.dhall -, sources = [ "src/**/*.purs" ] +, sources = [ "src/**/*.purs", "test/**/*.purs" ] } From 943fabe47b7382d9522321b0a34592b1b3b86ce7 Mon Sep 17 00:00:00 2001 From: June <33167175+UnrelatedString@users.noreply.github.com> Date: Tue, 25 Mar 2025 20:33:03 -0400 Subject: [PATCH 07/27] Update README.md --- README.md | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index d225b5e7..ce5fb7be 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,11 @@ -# purescript-prelude +# purescript-lua-prelude -[![Latest release](http://img.shields.io/github/release/purescript/purescript-prelude.svg)](https://github.com/purescript/purescript-prelude/releases) -[![Build status](https://github.com/purescript/purescript-prelude/workflows/CI/badge.svg?branch=master)](https://github.com/purescript/purescript-prelude/actions?query=workflow%3ACI+branch%3Amaster) +[![Latest release](http://img.shields.io/github/release/Unisay/purescript-lua-prelude.svg)](https://github.com/Unisay/purescript-lua-prelude/releases) +[![Build status](https://github.com/Unisay/purescript-lua-prelude/workflows/CI/badge.svg?branch=master)](https://github.com/Unisay/purescript-lua-prelude/actions?query=workflow%3ACI+branch%3Amain) [![Pursuit](https://pursuit.purescript.org/packages/purescript-prelude/badge)](https://pursuit.purescript.org/packages/purescript-prelude) -The PureScript prelude. +The PureScript prelude for Lua. + ## Installation @@ -14,4 +15,4 @@ spago install prelude ## Documentation -Module documentation is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-prelude). +Module documentation (for the implementation of the same API for the JavaScript backend) is [published on Pursuit](http://pursuit.purescript.org/packages/purescript-prelude). From edc3f31dc8d3a2427ebeeaac8f01024cba4bb005 Mon Sep 17 00:00:00 2001 From: June <33167175+UnrelatedString@users.noreply.github.com> Date: Tue, 25 Mar 2025 21:09:23 -0400 Subject: [PATCH 08/27] step 1: actually make it install the Lua interpreter --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ec23e5c4..25106b06 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,6 +8,9 @@ jobs: steps: - uses: actions/checkout@v4 + - name: Install Lua interpreter + uses: leafo/gh-actions-lua@v11 + - name: Set up Node 20 uses: actions/setup-node@v4 with: From 84108fd4e2f584b36f4d6c45c634ec0097e0dd2e Mon Sep 17 00:00:00 2001 From: UnrelatedString Date: Tue, 25 Mar 2025 21:24:15 -0400 Subject: [PATCH 09/27] UH OH --- spago.dhall | 1 + 1 file changed, 1 insertion(+) diff --git a/spago.dhall b/spago.dhall index e3fa7cb8..a827011c 100644 --- a/spago.dhall +++ b/spago.dhall @@ -2,4 +2,5 @@ , dependencies = [ ] : List Text , packages = ./packages.dhall , sources = [ "src/**/*.purs", "test/**/*.purs" ] +, backend = "pslua --foreign-path . --lua-output-file output/main.lua" } From bc1b010cb900b0ea4b62ed954cf32ea31bfb92ba Mon Sep 17 00:00:00 2001 From: UnrelatedString Date: Tue, 25 Mar 2025 21:37:46 -0400 Subject: [PATCH 10/27] WHATTTTTT DO YOU MEAN INVALID ARGUMENT --- build | 2 ++ spago-legacy | 2 ++ test.dhall | 2 ++ 3 files changed, 6 insertions(+) create mode 100755 build create mode 100755 spago-legacy create mode 100644 test.dhall diff --git a/build b/build new file mode 100755 index 00000000..d570cb65 --- /dev/null +++ b/build @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +./spago-legacy build --purs-args "-g corefn" diff --git a/spago-legacy b/spago-legacy new file mode 100755 index 00000000..a1b29327 --- /dev/null +++ b/spago-legacy @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +spago-legacy $@ || spago $@ diff --git a/test.dhall b/test.dhall new file mode 100644 index 00000000..a50d30c2 --- /dev/null +++ b/test.dhall @@ -0,0 +1,2 @@ +let normal = ./spago.dhall +in normal // { backend = "pslua --foreign-path . --lua-output-file output/main.lua" } From 38eb528effe0d98e5724c0b6639646494d35274f Mon Sep 17 00:00:00 2001 From: UnrelatedString Date: Tue, 25 Mar 2025 21:41:10 -0400 Subject: [PATCH 11/27] oh it's just because I don't have a main LMAOOO --- build | 2 -- 1 file changed, 2 deletions(-) delete mode 100755 build diff --git a/build b/build deleted file mode 100755 index d570cb65..00000000 --- a/build +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/env sh -./spago-legacy build --purs-args "-g corefn" From a6988abddf167644940ace91262ae5e7550c3519 Mon Sep 17 00:00:00 2001 From: UnrelatedString Date: Tue, 25 Mar 2025 21:47:49 -0400 Subject: [PATCH 12/27] ooooh yeah this is progress now :D --- spago-legacy | 2 +- test.dhall | 9 ++++++++- test.sh | 2 ++ 3 files changed, 11 insertions(+), 2 deletions(-) create mode 100755 test.sh diff --git a/spago-legacy b/spago-legacy index a1b29327..2d537898 100755 --- a/spago-legacy +++ b/spago-legacy @@ -1,2 +1,2 @@ #!/usr/bin/env sh -spago-legacy $@ || spago $@ +spago-legacy "$@" || spago "$@" diff --git a/test.dhall b/test.dhall index a50d30c2..732b11b3 100644 --- a/test.dhall +++ b/test.dhall @@ -1,2 +1,9 @@ let normal = ./spago.dhall -in normal // { backend = "pslua --foreign-path . --lua-output-file output/main.lua" } +in normal // + { backend = '' + pslua \ + --foreign-path . \ + --lua-output-file output/test.lua \ + --entry Test.Main + '' + } diff --git a/test.sh b/test.sh new file mode 100755 index 00000000..b9aac305 --- /dev/null +++ b/test.sh @@ -0,0 +1,2 @@ +#!/usr/bin/env sh +./spago-legacy -x test.dhall build && lua output/test.lua From 211f004d8e38028c4a82b79e9bca0b598a7be862 Mon Sep 17 00:00:00 2001 From: UnrelatedString Date: Tue, 25 Mar 2025 21:50:37 -0400 Subject: [PATCH 13/27] cleaner failure for my ./spago-legacy lmao --- spago-legacy | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/spago-legacy b/spago-legacy index 2d537898..69e71943 100755 --- a/spago-legacy +++ b/spago-legacy @@ -1,2 +1,6 @@ #!/usr/bin/env sh -spago-legacy "$@" || spago "$@" +if spago-legacy --version > /dev/null; then + spago-legacy "$@" +else + spago "$@" +fi From be89834acd2ddc3f2d431b266214f0630c541709 Mon Sep 17 00:00:00 2001 From: UnrelatedString Date: Tue, 25 Mar 2025 22:05:33 -0400 Subject: [PATCH 14/27] committing my first attempt at writing any Lua ever before testing it. for posterity LMAO --- test/Test/Main.lua | 39 +++++++++++++++++++++++++++++++++++++++ test/Test/Utils.lua | 7 +++++++ 2 files changed, 46 insertions(+) create mode 100644 test/Test/Main.lua create mode 100644 test/Test/Utils.lua diff --git a/test/Test/Main.lua b/test/Test/Main.lua new file mode 100644 index 00000000..0305e950 --- /dev/null +++ b/test/Test/Main.lua @@ -0,0 +1,39 @@ +return { + testNumberShow = (function(showNumber) + return function() + cases = { + {0.0, "0.0"}, + {1.0, "1.0"}, + {-1.0, "-1.0"}, + {500.0, "500.0"}, + + -- Outside Int range + {1e10, "10000000000.0"}, + {1e10 + 0.5, "10000000000.5"}, + {-1e10, "-10000000000.0"}, + {-1e10 - 0.5, "-10000000000.5"}, + + -- With exponent + {1e21, "1e+21"}, + {1e-21, "1e-21"}, + + -- With decimal and exponent + {1.5e21, "1.5e+21"}, + {1.5e-10, "1.5e-10"}, + + {nan, "NaN"}, + {math.huge, "Infinity"}, + {-math.huge, "-Infinity"}, + } + + for case in cases do + input = case[0] + expected = case[1] + actual = showNumber(input) + if expected != actual do + error("For "..input..", expected "..expected..", got: "..actual..".") + end + end + end + end) +} diff --git a/test/Test/Utils.lua b/test/Test/Utils.lua new file mode 100644 index 00000000..275fef6f --- /dev/null +++ b/test/Test/Utils.lua @@ -0,0 +1,7 @@ +return { + throwErr = (function(msg) + return function() + error(msg) + end + end), +} From d7bc0a5f0778413d7a6826b5cfe41d173de41b42 Mon Sep 17 00:00:00 2001 From: UnrelatedString Date: Tue, 25 Mar 2025 22:07:38 -0400 Subject: [PATCH 15/27] easy fixes! now it just. stack overflows uhhhhh --- test/Test/Main.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Test/Main.lua b/test/Test/Main.lua index 0305e950..e94af12e 100644 --- a/test/Test/Main.lua +++ b/test/Test/Main.lua @@ -30,7 +30,7 @@ return { input = case[0] expected = case[1] actual = showNumber(input) - if expected != actual do + if expected ~= actual then error("For "..input..", expected "..expected..", got: "..actual..".") end end From 422b26ead40d61d7ab8b53544f557522ae5c0656 Mon Sep 17 00:00:00 2001 From: UnrelatedString Date: Tue, 25 Mar 2025 22:16:27 -0400 Subject: [PATCH 16/27] okay so this is deeply worrying BUT it's evidently a problem with the backend's Generic implementation so I'll just go sweep that under the rug for now aaand the tests pass :D --- test/Test/Main.purs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/Test/Main.purs b/test/Test/Main.purs index 13ea2cce..f0e1652f 100644 --- a/test/Test/Main.purs +++ b/test/Test/Main.purs @@ -6,7 +6,7 @@ import Data.Ord (abs, signum) import Data.Reflectable (reflectType, reifyType) import Prim.Boolean (True, False) import Prim.Ordering (LT, GT, EQ) -import Test.Data.Generic.Rep (testGenericRep) +--import Test.Data.Generic.Rep (testGenericRep) import Test.Utils (AlmostEff, assert) import Type.Proxy (Proxy(..)) @@ -18,7 +18,7 @@ main = do testIntDivMod testIntDegree testRecordInstances - testGenericRep + --testGenericRep testReflectType testReifyType testSignum From d58f5ffff7a876a2880cf115662e7664127fe4f3 Mon Sep 17 00:00:00 2001 From: June <33167175+UnrelatedString@users.noreply.github.com> Date: Tue, 25 Mar 2025 22:23:18 -0400 Subject: [PATCH 17/27] nixxxxxxxxxxxxxxxxxxxxxxxxxxxxxx --- .github/workflows/ci.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 25106b06..8d36c04e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,13 +16,16 @@ jobs: with: node-version: "20.x" - - name: Set up Purescript and Spago + - name: Set up Purescript and spago-legacy run: | npm i -g purescript - npm i -g spago + npm i -g spago-legacy - - name: Build - run: spago build + - uses: DeterminateSystems/nix-installer-action@main + - uses: hannesg/ordinary-nix-cache@v0.1.0 - - name: Test - run: spago test + - name: Set up pslua + run: nix profile install 'github:Unisay/purescript-lua' + + - name: Build and test + run: ./test.sh From 714faf0db5f135a73e9f12dc1184ec636d702188 Mon Sep 17 00:00:00 2001 From: UnrelatedString Date: Tue, 25 Mar 2025 22:28:42 -0400 Subject: [PATCH 18/27] make it less confusing :p --- test.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test.sh b/test.sh index b9aac305..3299039e 100755 --- a/test.sh +++ b/test.sh @@ -1,2 +1,2 @@ #!/usr/bin/env sh -./spago-legacy -x test.dhall build && lua output/test.lua +./spago-legacy -x test.dhall build && lua output/test.lua && echo Tests passed! From 1887ba40eae64ba2fd7eedd1bc3a2506546960fa Mon Sep 17 00:00:00 2001 From: UnrelatedString Date: Wed, 26 Mar 2025 01:11:36 -0400 Subject: [PATCH 19/27] feel stupid actually committing this scratch work but I'll forget this DOESN'T stack overflow otherwise --- test/Test/Main.purs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/Test/Main.purs b/test/Test/Main.purs index f0e1652f..a76f5eba 100644 --- a/test/Test/Main.purs +++ b/test/Test/Main.purs @@ -22,6 +22,16 @@ main = do testReflectType testReifyType testSignum + void $ pure $ allZeroes $ Cons 0 NilList + +data List a = Cons a (List a) | NilList + +class AllZeroes a where + allZeroes :: a -> Boolean + +instance AllZeroes (List Int) where + allZeroes (Cons h t) = h == 0 && allZeroes t + allZeroes NilList = true foreign import testNumberShow :: (Number -> String) -> AlmostEff From 5e1e3eaeca8d05e2897b755a8f2edc427fdd0273 Mon Sep 17 00:00:00 2001 From: UnrelatedString Date: Wed, 26 Mar 2025 01:12:20 -0400 Subject: [PATCH 20/27] and just in case dead code elimination :P --- test/Test/Main.purs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/Test/Main.purs b/test/Test/Main.purs index a76f5eba..42fc0bee 100644 --- a/test/Test/Main.purs +++ b/test/Test/Main.purs @@ -22,7 +22,7 @@ main = do testReflectType testReifyType testSignum - void $ pure $ allZeroes $ Cons 0 NilList + assert "please" $ allZeroes $ Cons 0 NilList data List a = Cons a (List a) | NilList From dad261fdf7b38b2cca4702bddc69f7630f29ff34 Mon Sep 17 00:00:00 2001 From: UnrelatedString Date: Wed, 26 Mar 2025 01:15:55 -0400 Subject: [PATCH 21/27] also WHAT HAPPENED TO THE NIX BUILD IN THE CI aaaaaaa ;_; what kind of exit code even is 143 and pleaseeeee tell me the cache will be able to speed this up some once it actually does work --- test/Test/Main.purs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/test/Test/Main.purs b/test/Test/Main.purs index 42fc0bee..f0e1652f 100644 --- a/test/Test/Main.purs +++ b/test/Test/Main.purs @@ -22,16 +22,6 @@ main = do testReflectType testReifyType testSignum - assert "please" $ allZeroes $ Cons 0 NilList - -data List a = Cons a (List a) | NilList - -class AllZeroes a where - allZeroes :: a -> Boolean - -instance AllZeroes (List Int) where - allZeroes (Cons h t) = h == 0 && allZeroes t - allZeroes NilList = true foreign import testNumberShow :: (Number -> String) -> AlmostEff From 862e075f60f4afd266387d082bffa69c6fa243ba Mon Sep 17 00:00:00 2001 From: June <33167175+UnrelatedString@users.noreply.github.com> Date: Wed, 26 Mar 2025 01:23:25 -0400 Subject: [PATCH 22/27] Update ci.yml because oh. the build got TIMED OUT --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8d36c04e..86294826 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,11 +21,11 @@ jobs: npm i -g purescript npm i -g spago-legacy - - uses: DeterminateSystems/nix-installer-action@main - - uses: hannesg/ordinary-nix-cache@v0.1.0 + - name: Download pslua + run: wget -c https://github.com/Unisay/purescript-lua/releases/download/0.2/pslua-linux_x86_64.tar.gz -O - | tar -xz - - name: Set up pslua - run: nix profile install 'github:Unisay/purescript-lua' + - name: Put pslua on PATH + run: realpath ./pslua >> $GITHUB_PATH - name: Build and test run: ./test.sh From b7c1fae0e4e5fb3c462aadc25cfa1b2770d339c8 Mon Sep 17 00:00:00 2001 From: June <33167175+UnrelatedString@users.noreply.github.com> Date: Wed, 26 Mar 2025 01:27:42 -0400 Subject: [PATCH 23/27] :///////////// --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86294826..9aa0cc45 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,8 +24,11 @@ jobs: - name: Download pslua run: wget -c https://github.com/Unisay/purescript-lua/releases/download/0.2/pslua-linux_x86_64.tar.gz -O - | tar -xz + - name: what + run: ls + - name: Put pslua on PATH - run: realpath ./pslua >> $GITHUB_PATH + run: realpath pslua >> $GITHUB_PATH - name: Build and test run: ./test.sh From 77ce4a680dd868a4c6b394e3689b7bf0ae587320 Mon Sep 17 00:00:00 2001 From: June <33167175+UnrelatedString@users.noreply.github.com> Date: Wed, 26 Mar 2025 01:30:24 -0400 Subject: [PATCH 24/27] Update ci.yml --- .github/workflows/ci.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9aa0cc45..1f01d817 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,11 +24,11 @@ jobs: - name: Download pslua run: wget -c https://github.com/Unisay/purescript-lua/releases/download/0.2/pslua-linux_x86_64.tar.gz -O - | tar -xz - - name: what - run: ls - - name: Put pslua on PATH run: realpath pslua >> $GITHUB_PATH + - name: what + run: cat $GITHUB_PATH + - name: Build and test run: ./test.sh From 81c8600dd11eb3c5aff3c9439a1706728d0b9cd1 Mon Sep 17 00:00:00 2001 From: June <33167175+UnrelatedString@users.noreply.github.com> Date: Wed, 26 Mar 2025 01:33:22 -0400 Subject: [PATCH 25/27] Update ci.ymlllllll --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1f01d817..db616d59 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,7 +28,10 @@ jobs: run: realpath pslua >> $GITHUB_PATH - name: what - run: cat $GITHUB_PATH + run: realpath $GITHUB_PATH + + - name: whattttt + run: echo $PATH - name: Build and test run: ./test.sh From 5eee10205782f91f600dd8aa31a46236926656de Mon Sep 17 00:00:00 2001 From: June <33167175+UnrelatedString@users.noreply.github.com> Date: Wed, 26 Mar 2025 01:34:32 -0400 Subject: [PATCH 26/27] Update ci.yml --- .github/workflows/ci.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db616d59..a6faf99b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -27,11 +27,8 @@ jobs: - name: Put pslua on PATH run: realpath pslua >> $GITHUB_PATH - - name: what - run: realpath $GITHUB_PATH - - - name: whattttt - run: echo $PATH + - name: WHAT?????? + run: pslua -h - name: Build and test run: ./test.sh From 4665847d231d9f3d1752c7eb9a7e4971c48f0e51 Mon Sep 17 00:00:00 2001 From: June <33167175+UnrelatedString@users.noreply.github.com> Date: Wed, 26 Mar 2025 01:36:35 -0400 Subject: [PATCH 27/27] Update ci.yml because oh yeahhhh --- .github/workflows/ci.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a6faf99b..5cac8f37 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -24,11 +24,11 @@ jobs: - name: Download pslua run: wget -c https://github.com/Unisay/purescript-lua/releases/download/0.2/pslua-linux_x86_64.tar.gz -O - | tar -xz - - name: Put pslua on PATH - run: realpath pslua >> $GITHUB_PATH + - run: mkdir bin + - run: mv pslua bin - - name: WHAT?????? - run: pslua -h + - name: Put pslua on PATH + run: realpath bin >> $GITHUB_PATH - name: Build and test run: ./test.sh