Skip to content

Commit

Permalink
Build binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
tai2 committed Oct 22, 2023
1 parent bd75a94 commit 20f34c7
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Build

on:
push:
tags:
- "v*.*.*"

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: 1.35.2
- name: Compile
run: |
# Linux
deno compile --target x86_64-unknown-linux-gnu --allow-write --allow-read src/decor.ts --output
zip -r decor-x86_64-unknown-linux-gnu.zip decor
# Windows
deno compile --target x86_64-pc-windows-msvc --allow-write --allow-read src/decor.ts --output
zip -r decor-x86_64-pc-windows-msvc.zip decor.exe
# Mac(Intel)
deno compile --target x86_64-apple-darwin --allow-write --allow-read src/decor.ts --output
zip -r decor-x86_64-apple-darwin.zip decor
# Mac(Apple Silicon)
deno compile --target aarch64-apple-darwin --allow-write --allow-read src/decor.ts --output
zip -r decor-aarch64-apple-darwin.zip decor
- name: Release
uses: softprops/action-gh-release@v1
with:
files: decor-*.zip

0 comments on commit 20f34c7

Please sign in to comment.