# File eval mode now relies on main function
All checks were successful
Test, Build, and Release / test (push) Successful in 1m26s
Test, Build, and Release / build (push) Successful in 1m15s

To encourage organizing code in a way that helps in understanding, I
have implemented the common idiom of requiring a `main` function. In
tricu and other functional languages, it is usually placed near the top
of the module. The evaluator gracefully handles the situation of passing
multiple files where the intermediary "library" files do not have main functions.
This commit is contained in:
James Eversole
2025-01-26 15:33:12 -06:00
parent a64b3f0829
commit 918d929c09
16 changed files with 39 additions and 58 deletions

View File

@ -54,16 +54,12 @@ jobs:
cp -L ./result/bin/tricu ./tricu
chmod 755 ./tricu
nix develop --command upx ./tricu
- name: Setup go for release action
uses: actions/setup-go@v5
with:
go-version: '>=1.20.1'
- name: Release binary
uses: https://gitea.com/actions/release-action@main
uses: akkuman/gitea-release-action@v1
with:
files: |-
./tricu
api_key: '${{ secrets.RELEASE_TOKEN }}'
token: '${{ secrets.RELEASE_TOKEN }}'
body: '${{ gitea.event.head_commit.message }}'
pre_release: true