-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (38 loc) · 1.1 KB
/
binary.yml
File metadata and controls
41 lines (38 loc) · 1.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Build Binaries
on:
workflow_call:
inputs:
tag_name:
required: true
type: string
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
include:
- target: bun-darwin-arm64
artifact: sladm-darwin-arm64
- target: bun-darwin-x64
artifact: sladm-darwin-x64
- target: bun-linux-x64
artifact: sladm-linux-x64
- target: bun-linux-arm64
artifact: sladm-linux-arm64
- target: bun-windows-x64
artifact: sladm-windows-x64.exe
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- run: bun install --frozen-lockfile
- name: Build binary
run: bun build --compile --minify --sourcemap --bytecode --target ${{ matrix.target }} ./src/index.ts --outfile ${{ matrix.artifact }}
- name: Upload release asset
uses: softprops/action-gh-release@v2
with:
tag_name: ${{ inputs.tag_name }}
files: ${{ matrix.artifact }}