ci: adapts to old linux

This commit is contained in:
fengzero
2022-10-20 08:18:31 +00:00
parent 8a89951df8
commit c2a8fbc5e9
+56 -1
View File
@@ -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: