Skip to content

Commit f3f873e

Browse files
committed
chore: attempted advice from #3 (comment).
1 parent e89f39b commit f3f873e

3 files changed

Lines changed: 121 additions & 150 deletions

File tree

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
branches: [ main, rolldown ]
6+
pull_request:
7+
branches: [ main, rolldown ]
8+
9+
jobs:
10+
build:
11+
name: Build on ${{ matrix.os }}
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest, macos-latest]
16+
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@v4
20+
21+
- name: Set up Bun
22+
uses: oven-sh/setup-bun@v2
23+
with:
24+
bun-version: latest
25+
26+
- name: Install dependencies
27+
run: bun install
28+
29+
- name: Run build
30+
run: bun run build
31+
32+
- name: Upload build artifacts
33+
if: success()
34+
uses: actions/upload-artifact@v4
35+
with:
36+
name: build-artifacts-${{ matrix.os }}
37+
path: dist/

0 commit comments

Comments
 (0)