-
Notifications
You must be signed in to change notification settings - Fork 12
47 lines (43 loc) · 1.56 KB
/
agent-build-linux.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
name: Build UI
on: workflow_call
jobs:
agent_build_linux:
name: Build agent linux
runs-on: ubuntu-latest
container:
image: vxcontrol/vxbuild-cross:1.19
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Common
uses: ./.github/actions/common
- name: Enable cache
uses: ./.github/actions/go_cache
- uses: actions/download-artifact@v3
with:
name: decode_environment
- name: Build
run: |
git config --global --add safe.directory /__w/soldr/soldr
cd build/package/agent/
# Linux
mkdir -p /usr/lib/vxagent
tar -xzf ../../../assets/deps/libraries_386.tar.gz -C /usr/lib/vxagent/
bash -x ./build-linux-386.sh && mv -v ../../bin/vxagent _tmp/linux/386/
BUNDLE=true bash -x ./build-linux-386.sh && mv -v ../../bin/vxbundle _tmp/linux/386/
rm -rf /usr/lib/vxagent/*
tar -xzf ../../../assets/deps/libraries_amd64.tar.gz -C /usr/lib/vxagent/
bash -x ./build-linux-amd64.sh && mv -v ../../bin/vxagent _tmp/linux/amd64/
BUNDLE=true bash -x ./build-linux-amd64.sh && mv -v ../../bin/vxbundle _tmp/linux/amd64/
# Common components
cp -v startup.sh _tmp/
cp -v ../../artifacts/agent/version _tmp/
cp -v -r ../../../assets/deps _tmp/
- name: Upload result for agent linux
uses: actions/upload-artifact@v3
with:
name: agent_linux
path: |
build/package/*/_tmp/