-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (55 loc) · 1.45 KB
/
main.yml
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
name: Build and Release
on:
push:
tags:
# Match any new tag
- '*'
env:
# Necessary for most environments as build failure can occur due to OOM issues
NODE_OPTIONS: "--max-old-space-size=4096"
jobs:
build:
permissions:
contents: write
strategy:
# Failure in one platform build won't impact the others
fail-fast: false
matrix:
build:
# - name: 'windows-amd64'
# platform: 'windows/amd64'
# os: 'windows-latest'
# - name: 'windows-arm64'
# platform: 'windows/arm64'
# os: 'windows-latest'
# - name: 'mac-amd64'
# platform: 'darwin/amd64'
# os: 'macos-latest'
- name: 'Build'
platform: 'darwin/arm64'
os: 'macos-latest'
runs-on: ${{ matrix.build.os }}
steps:
- name: Checkout
uses: actions/checkout@v3
with:
submodules: recursive
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: '22'
- name: Setup Bun
uses: oven-sh/setup-bun@v1
with:
bun-version: 'latest'
- name: Install Dependencies
run: bun install
- name: Build
run: bun run build:both
- name: Create Release
uses: softprops/action-gh-release@v2
with:
files: |
dist/*
draft: false
prerelease: true