-
Notifications
You must be signed in to change notification settings - Fork 491
61 lines (52 loc) · 1.39 KB
/
musl.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
# Only trigger when a PR is committed.
name: Linux Build Musl Static
on:
pull_request:
types: [closed]
jobs:
build:
if: github.event.pull_request.merged
name: Build
runs-on: ubuntu-latest
steps:
- name: Check out code into the Go module directory
uses: actions/checkout@v4
- uses: actions/setup-go@v4
with:
go-version: '^1.23'
- run: go version
- name: Get dependencies
run: |
go get -v -t -d ./...
sudo apt-get update
sudo apt-get install -y zip build-essential pkg-config libssl-dev
- name: Install Musl
run: |
wget http://www.musl-libc.org/releases/musl-1.1.23.tar.gz
tar -xvzf musl-1.1.23.tar.gz
cd musl-1.1.23
./configure
sudo make install
cd ..
- name: Use Node.js v16
uses: actions/setup-node@v3
with:
node-version: 16
- name: npm install gui
run: |
cd gui/velociraptor/
npm install
npm run build
cd ../../
- name: Build Musl Binary
run: |
mkdir ./output/
export PATH=$PATH:~/go/bin/:/usr/local/musl/bin
go run make.go -v UpdateDependentTools
go run make.go -v LinuxMusl
go run make.go -v LinuxMuslDebug
- name: StoreBinaries
uses: actions/upload-artifact@v4
with:
name: Binaries
path: output