Skip to content

Commit 579724e

Browse files
chore(actions): add ao to path
1 parent 5b0369e commit 579724e

File tree

2 files changed

+18
-8
lines changed

2 files changed

+18
-8
lines changed

.github/workflows/dev-cli.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -55,22 +55,32 @@ jobs:
5555
steps:
5656
- name: ⬇️ Checkout repo
5757
uses: actions/checkout@v4
58+
with:
59+
fetch-depth: 0
5860

5961
- name: 🦕 Setup Deno
6062
uses: denoland/setup-deno@v1
6163
with:
6264
deno-version: 1.x
6365

64-
- name: Build and install CLI
65-
run: deno task build-binaries && deno task install-local
66-
67-
- name: Verify ao installation
68-
run: which ao && ao --version
69-
7066
- name: Initialize and build template projects
7167
run: |
68+
container/build.sh
69+
echo 'export AO_INSTALL=/home/runner/.ao' >> $GITHUB_PATH
70+
echo 'export PATH="$AO_INSTALL/bin:$PATH"' >> $GITHUB_PATH
71+
source $GITHUB_PATH
72+
echo 'Building and installing binaries'
73+
deno task build-binaries && deno task install-local
7274
echo "Building for language: ${{ matrix.lang }}"
73-
ao init -l ${{ matrix.lang }} && ao build
75+
ao init my-template -l ${{ matrix.lang }} && cd my-template && ao build
76+
77+
echo 'Checking that process.wasm exists'
78+
if [ -f "process.wasm" ]; then
79+
echo "✅ process.wasm exists"
80+
else
81+
echo "❌ process.wasm is missing!" >&2
82+
exit 1
83+
fi
7484
7585
test-node-commands:
7686
if: github.event_name != 'workflow_dispatch'

dev-cli/container/src/core/loader.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,6 @@ function handle(msgJSON, aoJSON)
1616
local responseJSON = json.encode({ok = status, response = response})
1717
-- free
1818
response = nil
19-
collectgarbage("collect")
19+
collectgarbage()
2020
return responseJSON
2121
end

0 commit comments

Comments
 (0)