-
Notifications
You must be signed in to change notification settings - Fork 1
115 lines (115 loc) · 4.04 KB
/
asset_busybox.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
name: asset_busybox
on:
workflow_dispatch:
permissions:
contents: write
jobs:
linux-x64:
runs-on: ubuntu-22.04
steps:
- name: Build
run: |
curl -o busybox.tar.zst -L https://mirror.pkgbuild.com/extra/os/x86_64/busybox-1.36.1-2-x86_64.pkg.tar.zst
tar -xf busybox.tar.zst
mv usr/bin/busybox busybox
zip -9 linux-x64.zip busybox
- name: Verify
run: |
uname -a
ldd --version
ldd busybox || true
./busybox
- name: Release
uses: softprops/action-gh-release@v2
with:
prerelease: true
body: "`github.workflow_sha = ${{ github.workflow_sha }}`"
tag_name: "${{ 'asset_busybox_20241008_' }}${{ github.run_id }}"
files: linux-x64.zip
linux-arm64:
runs-on: warp-ubuntu-2204-arm64-2x
steps:
- name: Build
run: |
curl -o busybox.tar.xz -L http://mirror.archlinuxarm.org/aarch64/extra/busybox-1.36.1-2-aarch64.pkg.tar.xz
tar -xf busybox.tar.xz
mv usr/bin/busybox busybox
zip -9 linux-arm64.zip busybox
- name: Verify
run: |
uname -a
ldd --version
ldd busybox || true
./busybox
- name: Release
uses: softprops/action-gh-release@v2
with:
prerelease: true
body: "`github.workflow_sha = ${{ github.workflow_sha }}`"
tag_name: "${{ 'asset_busybox_20241008_' }}${{ github.run_id }}"
files: linux-arm64.zip
mac-arm64:
runs-on: macos-14
steps:
- name: Build
run: |
curl -o busybox -L https://github.com/kernelzeroday/busybox-macos-arm64/releases/download/v1.20.0.git/busybox_unstripped
chmod +x busybox
zip -9 mac-arm64.zip busybox
- name: Verify
run: |
uname -a
otool -L busybox || true
./busybox
- name: Release
uses: softprops/action-gh-release@v2
with:
prerelease: true
body: "`github.workflow_sha = ${{ github.workflow_sha }}`"
tag_name: "${{ 'asset_busybox_20241008_' }}${{ github.run_id }}" # 1.20.0 , it's so old, but works
files: mac-arm64.zip
win-x64:
runs-on: windows-2022
steps:
- name: Build
shell: C:\msys64\msys2_shell.cmd -clang64 -defterm -here -no-start -e {0}
run: |
pacman -S --noconfirm zip
curl -o busybox.exe -L https://frippery.org/files/busybox/busybox-w64-FRP-5467-g9376eebd8.exe
zip -9 win-x64.zip busybox.exe
- name: Verify
shell: C:\msys64\msys2_shell.cmd -clang64 -defterm -here -no-start -e {0}
run: |
uname -a
ldd busybox.exe || true
./busybox.exe
- name: Release
uses: softprops/action-gh-release@v2
with:
prerelease: true
body: "`github.workflow_sha = ${{ github.workflow_sha }}`"
tag_name: "${{ 'asset_busybox_20241008_' }}${{ github.run_id }}" # acturally, it's based on 1.37 master
files: win-x64.zip
win-arm64:
runs-on: windows-2022
steps:
- name: Build
shell: C:\msys64\msys2_shell.cmd -clang64 -defterm -here -no-start -e {0}
run: |
pacman -S --noconfirm zip
curl -o busybox.exe -L https://frippery.org/files/busybox/busybox-w64a-FRP-5467-g9376eebd8.exe
zip -9 win-arm64.zip busybox.exe
- name: Verify
shell: C:\msys64\msys2_shell.cmd -clang64 -defterm -here -no-start -e {0}
run: |
uname -a
# ldd busybox.exe || true # unable to test
# ./busybox.exe
- name: Release
uses: softprops/action-gh-release@v2
with:
prerelease: true
body: "`github.workflow_sha = ${{ github.workflow_sha }}`"
tag_name: "${{ 'asset_busybox_20241008_' }}${{ github.run_id }}" # acturally, it's based on 1.37 master
files: win-arm64.zip
# just download from other sources, version number is current date, may have different busybox version, see above to find the real version