Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
35 changes: 35 additions & 0 deletions .github/workflows/dev-cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,41 @@ jobs:
deno task test
env:
CI: true
build:
if: github.event_name != 'workflow_dispatch'
runs-on: ubuntu-latest
strategy:
matrix:
lang: [lua, c]
steps:
- name: ⬇️ Checkout repo
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: 🦕 Setup Deno
uses: denoland/setup-deno@v1
with:
deno-version: 1.x

- name: Initialize and build template projects
run: |
docker build container -t p3rmaw3b/ao
echo 'export AO_INSTALL=/home/runner/.ao' >> $GITHUB_PATH
echo 'export PATH="$AO_INSTALL/bin:$PATH"' >> $GITHUB_PATH
source $GITHUB_PATH
echo 'Building and installing binaries'
deno task build-binaries && deno task install-local
echo "Building for language: ${{ matrix.lang }}"
ao init my-template -l ${{ matrix.lang }} && cd my-template && ao build

echo 'Checking that process.wasm exists'
if [ -f "process.wasm" ]; then
echo "✅ process.wasm exists"
else
echo "❌ process.wasm is missing!" >&2
exit 1
fi

test-node-commands:
if: github.event_name != 'workflow_dispatch'
Expand Down
3 changes: 1 addition & 2 deletions dev-cli/container/src/ao_module_lib/languages/c.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import glob
from ao_module_lib.definition import Definition
from ao_module_lib.file import BundleFile

def inject_c_files(definition: Definition, c_program: str, c_source_files: list, link_libraries: list):
def inject_c_files(definition: Definition, c_program: str, c_source_files: list):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would really like this fix to be merged in.


c_header_files = []

Expand Down
2 changes: 1 addition & 1 deletion dev-cli/src/deps.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export { Command } from 'https://deno.land/x/[email protected].3/command/mod.ts'
export { Command } from 'https://deno.land/x/[email protected].4/command/mod.ts';
export { basename, resolve } from 'https://deno.land/[email protected]/path/mod.ts'
export { copy } from 'https://deno.land/[email protected]/fs/copy.ts'
export { parse } from 'jsr:@std/yaml'
Loading