Skip to content

Commit 7def50c

Browse files
dsrwclaude
andcommitted
Fix CI world_tests flags and macOS cache key
Use positional args (dist, headless) instead of --flags for world_tests since Nim interprets --flags as its own options. Also bump macOS cache key to v4 to match other platforms and refresh stale Godot binaries. Co-Authored-By: Claude <[email protected]>
1 parent a51b9eb commit 7def50c

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/workflows/dist_linux.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Run VM tests
4545
run: nim vm_tests
4646
- name: Run world tests
47-
run: nim world_tests --headless
47+
run: nim world_tests headless
4848
- uses: actions/upload-artifact@v4
4949
with:
5050
name: Enu Linux Distribution

.github/workflows/dist_mac.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959
path: |
6060
vendor/godot/bin
6161
fonts
62-
key: ${{ runner.os }}-prereq-cache-v2-${{ hashFiles('.submodules.tmp') }}
62+
key: ${{ runner.os }}-prereq-cache-v4-${{ hashFiles('.submodules.tmp') }}
6363
- name: build prereqs
6464
run: nim dist_prereqs
6565
if: steps.prereq-cache.outputs.cache-hit != 'true'
@@ -70,7 +70,7 @@ jobs:
7070
- name: Run VM tests
7171
run: nim vm_tests
7272
- name: Run world tests
73-
run: nim world_tests --dist
73+
run: nim world_tests dist
7474
- uses: actions/upload-artifact@v4
7575
with:
7676
name: Enu macOS Distribution

.github/workflows/dist_win.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
- name: Run VM tests
6464
run: nim vm_tests
6565
- name: Run world tests
66-
run: nim world_tests --dist
66+
run: nim world_tests dist
6767

6868
# Upload unsigned dist for zip signing
6969
- name: Upload unsigned dist for zip signing

tasks.nim

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,12 +97,12 @@ task godot_tests, "run godot tests":
9797
&"vendor/godot/bin/godot_server.osx.opt.tools.{cpu} --quiet --script tests/tests.gdns"
9898

9999
task world_tests,
100-
"run in-world tests (--headless for server build, --dist for dist build)":
100+
"run in-world tests (headless for server build, dist for dist build)":
101101
let
102102
test_level = this_dir() / "vmlib/worlds/tests/unit-tests"
103103
params = command_line_params()
104-
headless = "--headless" in params
105-
use_dist = "--dist" in params
104+
headless = "headless" in params
105+
use_dist = "dist" in params
106106

107107
let bin =
108108
if use_dist:

0 commit comments

Comments
 (0)