Skip to content

Commit c5cf925

Browse files
chore(actions): add build action to check that template projects can build
1 parent 1c62d1a commit c5cf925

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/dev-cli.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,31 @@ jobs:
4646
deno task test
4747
env:
4848
CI: true
49+
build:
50+
if: github.event_name != 'workflow_dispatch'
51+
runs-on: ubuntu-latest
52+
strategy:
53+
matrix:
54+
lang: [lua, c]
55+
steps:
56+
- name: ⬇️ Checkout repo
57+
uses: actions/checkout@v4
58+
59+
- name: 🦕 Setup Deno
60+
uses: denoland/setup-deno@v1
61+
with:
62+
deno-version: 1.x
63+
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+
70+
- name: Initialize and build template projects
71+
run: |
72+
echo "Building for language: ${{ matrix.lang }}"
73+
ao init -l ${{ matrix.lang }} && ao build
4974
5075
test-node-commands:
5176
if: github.event_name != 'workflow_dispatch'

0 commit comments

Comments
 (0)