Skip to content

build-cli

build-cli #7

Workflow file for this run

name: build-cli
on:
workflow_dispatch:
permissions:
id-token: write # Needed for auth with Deno Deploy
contents: read # Needed to clone the repository
jobs:
build-and-publish:
strategy:
fail-fast: false
matrix:
platform: [macos-latest, windows-latest, ubuntu-latest]
runs-on: ${{ matrix.platform }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x # Run with latest stable Deno.
- name: Compile step
working-directory: core/cli/
run: "deno compile -A --output build/metadraft-${{ matrix.platform }} ./src/mod.ts"
- uses: actions/upload-artifact@v4
with:
name: metadraft-${{ matrix.platform }}
path: core/cli/build/metadraft*