Skip to content

Add build job

Add build job #1

Workflow file for this run

name: CI
on: push
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
jobs:
build:
strategy:
matrix:
target: [x86_64-unknown-linux-gnu, aarch64-unknown-linux-gnu, x86_64-pc-windows-msvc, x86_64-apple-darwin, aarch64-apple-darwin]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
- run: deno task build
- run: deno compile -A --target ${{ matrix.target }} --unstable-kv --include worker.ts --output mtkruto-server main.ts
- run: tar -czf mtkruto-server-${{ matrix.os }}.tar.gz mtkruto-server*
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.target }}
path: mtkruto-server-${{ matrix.os }}.tar.gz