@@ -43,10 +43,84 @@ jobs:
4343 - name : Upload x86_64 build artifacts
4444 uses : actions/upload-artifact@v4
4545 with :
46- name : bisheng-telemetry-search-x86_64
46+ name : telemetry_search
4747 path : ./build_output/*
48-
4948
49+ build_arm :
50+ name : Build for ARM
51+ runs-on : ubuntu-22.04-arm
52+ steps :
53+ - name : Checkout code
54+ uses : actions/checkout@v2
55+ with :
56+ repository : dataelement/bisheng-telemetry-search
57+ token : ${{ secrets.CROSS_REPO_TOKEN }}
58+ path : bisheng-telemetry-search
59+
60+ - name : Set up Python
61+ uses : actions/setup-python@v4
62+ with :
63+ python-version : ' 3.10'
64+
65+ - name : Install build dependencies
66+ run : |
67+ sudo apt-get update
68+ sudo apt-get install -y build-essential
69+ pip install --upgrade pip setuptools wheel
70+ pip install cython
71+
72+ - name : Build the project
73+ working-directory : ./bisheng-telemetry-search/telemetry_search
74+ run : |
75+ pwd
76+ python build_all.py --delete-source
77+ mkdir ../../build_output
78+ rm -rf ./build
79+ cp -r ./* ../../build_output/
80+ ls -lh ../../build_output/
81+
82+ - name : Upload ARM build artifacts
83+ uses : actions/upload-artifact@v4
84+ with :
85+ name : telemetry_search
86+ path : ./build_output/*
87+
88+
89+ deploy_to_sso_project :
90+ name : Deploy Artifacts to SSO Project
91+ needs : [ build_x86_64, build_arm ]
92+ runs-on : ubuntu-latest
93+ steps :
94+ - name : Checkout SSO Project
95+ uses : actions/checkout@v2
96+ with :
97+ repository : dataelement/bisheng
98+ token : ${{ secrets.CROSS_REPO_TOKEN }}
99+ base : feat/2.3.0
100+ path : bisheng
101+
102+ - name : Download build artifacts
103+ uses : actions/download-artifact@v4
104+ with :
105+ name : telemetry_search
106+ path : ./telemetry_search
107+
108+ - name : copy files
109+ run : |
110+ ls -lh ./telemetry_search
111+ cp -r ./telemetry_search ./bisheng/src/backend/bisheng/
112+ ls -lh ./bisheng/src/backend/bisheng/telemetry_search
113+
114+ - name : Commit and Push changes
115+ working-directory : ./bisheng
116+ run : |
117+ git config --global user.name "github-actions[bot]"
118+ git config --global user.email "github-actions[bot]@users.noreply.github.com"
119+ git checkout -b feat/2.3.0
120+ git add .
121+ git commit -m "chore: update telemetry_search build artifacts [skip ci]" || echo "No changes to commit"
122+ git push origin feat/2.3.0
123+
50124
51125
52126
0 commit comments