5 Commits

Author SHA1 Message Date
92a3b95935 Release 0.6.0
Some checks failed
Test, Build, and Release / test (push) Successful in 1m54s
Test, Build, and Release / build (push) Has been cancelled
2025-01-23 16:41:06 -06:00
9fd8a85af9 Polluting my action run history a little bit more 2025-01-23 16:27:24 -06:00
e06a124733 ??
Some checks failed
Test, Build, and Release / test (push) Successful in 1m38s
Test, Build, and Release / build (push) Failing after 1m57s
2025-01-23 16:20:06 -06:00
13d95290b9 ?
Some checks failed
Test, Build, and Release / test (push) Successful in 1m33s
Test, Build, and Release / build (push) Has been cancelled
2025-01-23 16:09:20 -06:00
2bbcc2e6be Attempt to release 2025-01-23 16:07:49 -06:00
3 changed files with 30 additions and 14 deletions

View File

@ -28,6 +28,16 @@ jobs:
restore-keys: | restore-keys: |
cabal- cabal-
- name: Set up cache for Nix
uses: actions/cache@v4
with:
path: |
/nix/store
/nix/var/nix/cache
key: nix-${{ hashFiles('flake.lock') }}
restore-keys: |
nix-
- name: Initialize Cabal and update package list - name: Initialize Cabal and update package list
run: | run: |
nix develop --command cabal update nix develop --command cabal update
@ -48,14 +58,22 @@ jobs:
with: with:
fetch-depth: 0 fetch-depth: 0
- name: Build and shrink binary - name: Set up cache for Nix
uses: actions/cache@v4
with:
path: |
/nix/store
/nix/var/nix/cache
key: nix-${{ hashFiles('flake.lock') }}
restore-keys: |
nix-
- name: Build binary
run: | run: |
nix build nix build
cp -L ./result/bin/tricu ./tricu ls -alh ./result/bin/tricu
chmod 755 ./tricu
nix develop --command upx ./tricu
- name: Setup go for release action - name: Setup go for release actoin
uses: actions/setup-go@v5 uses: actions/setup-go@v5
with: with:
go-version: '>=1.20.1' go-version: '>=1.20.1'
@ -64,6 +82,5 @@ jobs:
uses: https://gitea.com/actions/release-action@main uses: https://gitea.com/actions/release-action@main
with: with:
files: |- files: |-
./tricu ./result/bin/tricu
api_key: '${{ secrets.RELEASE_TOKEN }}' api_key: '${{ secrets.RELEASE_TOKEN }}'
pre_release: true

View File

@ -16,7 +16,7 @@ These features move us cleanly out of the [turing tarpit](https://en.wikipedia.o
tricu is the word for "tree" in Lojban: `(x1) is a tree of species/cultivar (x2)`. This project was named "sapling" until I discovered the name is already being used for other (completely unrelated) programming language development projects. tricu is the word for "tree" in Lojban: `(x1) is a tree of species/cultivar (x2)`. This project was named "sapling" until I discovered the name is already being used for other (completely unrelated) programming language development projects.
## REPL examples ## What does it look like?
``` ```
tricu < -- Anything after `--` on a single line is a comment tricu < -- Anything after `--` on a single line is a comment
@ -31,7 +31,7 @@ tricu < triage = (\a b c : t (t a b) c)
tricu < test = triage "Leaf" (\z : "Stem") (\a b : "Fork") tricu < test = triage "Leaf" (\z : "Stem") (\a b : "Fork")
tricu < test (t t) tricu < test (t t)
tricu > "Stem" tricu > "Stem"
tricu < -- We can even convert a term back to source code (/demos/toSource.tri) tricu < -- We can even write a function to convert a term back to source code
tricu < toSource not? tricu < toSource not?
tricu > "(t (t (t t) (t t t)) (t t (t t t)))" tricu > "(t (t (t t) (t t t)) (t t (t t t)))"
``` ```
@ -79,4 +79,4 @@ tricu decode [OPTIONS]
Tree Calculus was discovered by [Barry Jay](https://github.com/barry-jay-personal/blog). Tree Calculus was discovered by [Barry Jay](https://github.com/barry-jay-personal/blog).
[treecalcul.us](https://treecalcul.us) is an excellent website with an intuitive Tree Calculus code playground created by [Johannes Bader](https://johannes-bader.com/) that introduced me to Tree Calculus. [treecalcul.us](https://treecalcul.us) is an excellent website with an intuitive playground created by [Johannes Bader](https://johannes-bader.com/) that introduced me to Tree Calculus. If tricu sounds interesting but compiling this repo sounds like a hassle, you should check out his site.

View File

@ -32,11 +32,10 @@
defaultPackage = self.packages.${system}.default; defaultPackage = self.packages.${system}.default;
devShells.default = pkgs.mkShell { devShells.default = pkgs.mkShell {
buildInputs = with pkgs; [ buildInputs = with pkgs.haskellPackages; [
haskellPackages.cabal-install cabal-install
haskellPackages.ghcid ghcid
customGHC customGHC
upx
]; ];
inputsFrom = builtins.attrValues self.packages.${system}; inputsFrom = builtins.attrValues self.packages.${system};
}; };