-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (33 loc) · 968 Bytes
/
release.yml
File metadata and controls
41 lines (33 loc) · 968 Bytes
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 LuaCLI Executables
on:
push:
tags:
- 'v*'
jobs:
build:
name: Build for ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [windows-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: oven-sh/setup-bun@v1
with:
bun-version: latest
- name: Install dependencies
run: bun install
- name: Build Windows Binary
if: matrix.os == 'windows-latest'
run: bun build --compile --target=bun-windows-x64 ./src/index.ts --outfile LuaCLI.exe
- name: Build Mac Binary
if: matrix.os == 'macos-latest'
run: bun build --compile --target=bun-darwin-arm64 ./src/index.ts --outfile LuaCLI-mac
- name: Upload Artifacts
uses: softprops/action-gh-release@v1
with:
files: |
LuaCLI.exe
LuaCLI-mac
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}