Skip to content

Commit b9a50e2

Browse files
committed
Fix: Update CLI command from 'compile' to 'build'
- Updated release.sh, ci.yml, and build-test.yml to use 'build' instead of 'compile' - Created missing test_ci.nag file for CI workflow - Added test_build.nag with proper Nagari syntax - All tests passing, CLI commands working correctly
1 parent 7281f55 commit b9a50e2

File tree

7 files changed

+16
-6
lines changed

7 files changed

+16
-6
lines changed

.github/workflows/build-test.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@ jobs:
7777
if: matrix.os != 'windows-latest'
7878
run: |
7979
echo 'print("Hello from build test!")' > test_build.nag
80-
./target/${{ matrix.target }}/release/nag compile test_build.nag
80+
- name: Test CLI binary
81+
run: |
82+
./target/${{ matrix.target }}/release/nag build test_build.nag
8183
8284
- name: Test simple compilation (Windows)
8385
if: matrix.os == 'windows-latest'

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,9 @@ jobs:
6464
run: |
6565
./target/release/nag --version
6666
echo 'print("Hello from CI test!")' > test_ci.nag
67-
./target/release/nag compile test_ci.nag
67+
- name: Test CLI binary
68+
run: |
69+
./target/release/nag build test_ci.nag
6870
6971
- name: Test CLI functionality (Windows)
7072
if: matrix.os == 'windows-latest'

nagari-runtime/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

nagari-runtime/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "nagari-runtime",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "Production-ready runtime utilities and interoperability layer for Nagari language with HTTP support, Python-like builtins, and comprehensive JavaScript integration",
55
"type": "module",
66
"main": "dist/index.js",

scripts/release.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ print_success "Binaries built successfully"
7474
print_step "Testing CLI functionality"
7575
./target/release/nag --version
7676
echo 'print("Release test successful!")' > test_release.nag
77-
./target/release/nag compile test_release.nag
77+
# Test the binary
78+
echo "Testing the binary..."
79+
./target/release/nag build test_release.nag
7880
rm -f test_release.nag test_release.js
7981
print_success "CLI test passed"
8082

test_build.nag

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
def main():
2+
print("Hello from Nagari!")
3+
return 0

test_ci.nag

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
print("CI test successful!")

0 commit comments

Comments
 (0)