mirror of
https://github.com/emqx/neuron.git
synced 2026-10-17 04:40:42 +08:00
ci: adapts to old linux
This commit is contained in:
@@ -60,6 +60,61 @@ jobs:
|
||||
path: |
|
||||
neuron-sdk-*.tar.gz
|
||||
|
||||
cross-build-old:
|
||||
runs-on: ubuntu-18.04
|
||||
strategy:
|
||||
matrix:
|
||||
arch:
|
||||
- [aarch64-linux-gnu, aarch64, arm64]
|
||||
- [arm-linux-gnueabihf, armv4, armhf]
|
||||
- [x86_64-linux-gnu, x86_64, amd64]
|
||||
container: neugates/build_old:${{ matrix.arch[1] }}-2.2
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
repository: troydhanson/uthash
|
||||
path: extern/uthash
|
||||
|
||||
- name: get version
|
||||
id: get_version
|
||||
run: echo "::set-output name=version::$(cat version)"
|
||||
|
||||
- name: compile
|
||||
run: |
|
||||
mkdir -p build && cd build
|
||||
cmake .. -DCMAKE_TOOLCHAIN_FILE=../cmake/${{ matrix.arch[0] }}.cmake \
|
||||
-DCMAKE_BUILD_TYPE=Release -DDISABLE_UT=ON
|
||||
make -j4
|
||||
|
||||
- name: get ui version
|
||||
id: get_ui_version
|
||||
run: echo "::set-output name=version::$(cat ui_version)"
|
||||
|
||||
- name: fetch dashboard
|
||||
uses: dsaltares/fetch-gh-release-asset@master
|
||||
with:
|
||||
repo: "emqx/neuron-dashboard-src"
|
||||
version: "tags/${{ steps.get_ui_version.outputs.version }}"
|
||||
file: "neuron-dashboard.zip"
|
||||
target: "neuron-dashboard.zip"
|
||||
|
||||
- name: unpack dashboard
|
||||
run: |
|
||||
unzip neuron-dashboard.zip -d ./build
|
||||
|
||||
- name: Create neuron sdk package
|
||||
run: |
|
||||
./package-sdk.sh -p ${{ matrix.arch[2] }} -n neuron-sdk-old-${{ steps.get_version.outputs.version }}
|
||||
|
||||
- uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: neuron-sdk-old-${{ matrix.arch[2] }}
|
||||
path: |
|
||||
neuron-sdk-old-*.tar.gz
|
||||
|
||||
build-debug-sdk:
|
||||
runs-on: ubuntu-20.04
|
||||
strategy:
|
||||
@@ -140,7 +195,7 @@ jobs:
|
||||
strategy:
|
||||
matrix:
|
||||
arch: [arm64, armhf, amd64]
|
||||
type: [neuron-sdk]
|
||||
type: [neuron-sdk, neuron-sdk-old]
|
||||
package: [tar.gz]
|
||||
|
||||
steps:
|
||||
|
||||
Reference in New Issue
Block a user