forked from wolfi-dev/os
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbun.yaml
80 lines (70 loc) · 1.8 KB
/
bun.yaml
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
package:
name: bun
version: 1.1.0
epoch: 1
description: "Incredibly fast JavaScript runtime, bundler, test runner, and package manager - all in one"
copyright:
- license: MIT
environment:
contents:
packages:
- autoconf
- automake
- bash
- bun-bootstrap # bun requires itself to build. this can get moved to our real build in the future
- busybox
- ccache
- clang-16
- clang-16-dev
- cmake
- coreutils
- curl
- git
- glibc-iconv
- go
- icu-dev
- libtool
- llvm-lld-16
- llvm16
- m4
- perl
- pkgconf
- pkgconf-dev
- ruby-3.3
- rust
- samurai
- sed
pipeline:
- uses: git-checkout
with:
repository: https://github.com/oven-sh/bun
expected-commit: 5903a614102704a627e6add42fc5668eb7acb68e
tag: bun-v${{package.version}}
# bun requires a specific zig to build
- runs: |
bun install -g @oven/zig
# "Modifying file https://github.com/oven-sh/bun/blob/main/CMakeLists.txt, removing flags Werror=uninitialized and -Werror."
sed -i '/-Werror=uninitialized/d' ./CMakeLists.txt
sed -i '/-Werror/d' ./CMakeLists.txt
- runs: |
export PATH="$PATH:/$HOME/.bun/bin"
bun setup
bun run build:release
- runs: |
mkdir -p ${{targets.destdir}}/usr/bin
mv ./build-release/bun ${{targets.destdir}}/usr/bin
# symlink bunx as bun: https://github.com/oven-sh/bun/blob/main/dockerhub/distroless/Dockerfile#L70
ln -s /usr/bin/bun ${{targets.destdir}}/usr/bin/bunx
- uses: strip
update:
enabled: true
github:
identifier: oven-sh/bun
use-tag: true
strip-prefix: bun-v
test:
pipeline:
- runs: |
bun --version
touch foo.js
bunx prettier foo.js