Skip to content

Commit

Permalink
building test
Browse files Browse the repository at this point in the history
  • Loading branch information
tunmx committed Dec 23, 2024
1 parent 70906b5 commit aee57c3
Show file tree
Hide file tree
Showing 2 changed files with 52 additions and 3 deletions.
48 changes: 48 additions & 0 deletions .github/workflows/linux-armv7-rv1106-armhf-uclibc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: Build Linux-Ubuntu-armv7-armhf-uclibc-rv1106

on:
push:
branches: ["feature/rv1106"]

# Set the global GitHub token environment variable
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}

jobs:
build:
name: Compile Linux-armv7 rv1106
runs-on: ubuntu-latest

steps:
# Step 1: Checkout the repository
- name: Checkout Repository
uses: actions/checkout@v4

# Step 2: Synchronize and update submodules recursively
- name: Update submodules
run: |
git clone --recurse-submodules https://github.com/tunmx/inspireface-3rdparty.git 3rdparty
# Step 3: Install wget and xz-utils
- name: Install wget and xz-utils
run: |
sudo apt-get update
sudo apt-get install -y wget xz-utils
# Step 4: Download Toolchain
- name: Download and Extract Linaro Toolchain
run: |
git clone https://github.com/tunmx/arm-rockchip830-linux-uclibcgnueabihf.git
# Step 5: Install Toolchain
- name: Set environment variables
run: |
echo "ARM_CROSS_COMPILE_TOOLCHAIN=${{ github.workspace }}/arm-rockchip830-linux-uclibcgnueabihf" >> $GITHUB_ENV
echo "PATH=${{ github.workspace }}/arm-rockchip830-linux-uclibcgnueabihf/bin:${PATH}" >> $GITHUB_ENV
# Step 6: Start building the SDK
- name: Start Building the InspireFace-Linux-armv7-rv1106
run: |
bash command/build_cross_rv1106_armhf_uclibc.sh
ls build
7 changes: 4 additions & 3 deletions command/build_cross_rv1106_armhf_uclibc.sh
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ mkdir -p ${BUILD_FOLDER_PATH}
# shellcheck disable=SC2164
cd ${BUILD_FOLDER_PATH}

# export cross_compile_toolchain=/home/jingyuyan/software/gcc-arm-8.3-2019.03-x86_64-arm-linux-gnueabihf
# export cross_compile_toolchain=/home/jingyuyan/software/arm-rockchip830-linux-uclibcgnueabihf

cmake -DCMAKE_SYSTEM_NAME=Linux \
-DCMAKE_BUILD_TYPE=Release \
-DCMAKE_SYSTEM_VERSION=1 \
Expand All @@ -92,12 +93,12 @@ cmake -DCMAKE_SYSTEM_NAME=Linux \
-DISF_RK_COMPILER_TYPE=armhf-uclibc \
-DISF_ENABLE_RGA=ON \
-DISF_ENABLE_COST_TIME=OFF \
-DISF_BUILD_WITH_SAMPLE=ON \
-DISF_BUILD_WITH_SAMPLE=OFF \
-DISF_BUILD_WITH_TEST=OFF \
-DISF_ENABLE_BENCHMARK=OFF \
-DISF_ENABLE_USE_LFW_DATA=OFF \
-DISF_ENABLE_TEST_EVALUATION=OFF \
-DISF_BUILD_SHARED_LIBS=OFF ${SCRIPT_DIR}
-DISF_BUILD_SHARED_LIBS=ON ${SCRIPT_DIR}

make -j4
# make install
Expand Down

0 comments on commit aee57c3

Please sign in to comment.