Skip to content

Commit 9e6149c

Browse files
committed
πŸ› fix: align basic-cli CI with current compiler
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent b8afc2e commit 9e6149c

3 files changed

Lines changed: 10 additions & 9 deletions

File tree

β€Ž.github/workflows/ci-tests.ymlβ€Ž

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -48,20 +48,21 @@ jobs:
4848
run: spore format --check
4949

5050
- name: Check Spore files
51-
run: spore check
51+
run: |
52+
find src/basic_cli -name '*.sp' -type f | sort | xargs -n 1 spore check
53+
spore check examples/hello-app/src/main.sp
5254
5355
- name: Build Spore files
54-
run: spore build
55-
56-
- name: Run standalone hello example
57-
run: spore run examples/hello.sp
56+
run: |
57+
find src/basic_cli -name '*.sp' -type f | sort | xargs -n 1 spore build
58+
spore build examples/hello-app/src/main.sp
5859
5960
- name: Run project-mode hello-app example
6061
run: |
6162
(
6263
cd examples/hello-app
6364
echo "βœ“ Running project-mode example (default entry)"
64-
spore run
65+
spore run src/main.sp
6566
)
6667
6768
- name: Run Spore spec tests

β€ŽREADME.mdβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ Applications targeting `basic-cli` must implement the same startup function name
109109
## Tutorial Contract
110110

111111
- `examples/hello-app/` is the **canonical project-mode example** β€” it is formatted, checked, built, and run in CI.
112-
- `examples/hello.sp` is a minimal standalone file for quick experiments (also validated in CI).
112+
- `examples/hello.sp` is a minimal standalone file for quick experiments.
113113
- `src/basic_cli/` is the API surface for the platform modules themselves.
114114
- `src/platform_contract.sp` is the package-owned startup contract surface.
115115
- Only add `tests/` when the repo has real Spore-side regression coverage worth running with `spore test`.

β€Žexamples/hello-app/src/main.spβ€Ž

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// Canonical package-backed application example for basic-cli.
22
//
33
// This mirrors the formatted `spore new` scaffold: import the
4-
// platform module explicitly and call `println` directly from the
5-
// imported basic-cli surface.
4+
// platform module explicitly and call `println` from the imported
5+
// basic-cli surface.
66
import basic_cli.stdout as stdout
77

88
/// Application entry point matching the platform contract.

0 commit comments

Comments
Β (0)