Skip to content

Commit

Permalink
Merge pull request #28 from HyperInspire/feature/ci
Browse files Browse the repository at this point in the history
Auto-Build Actions
  • Loading branch information
tunmx authored May 6, 2024
2 parents 980bb2a + 9c67577 commit 40f3a13
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/built_release_from_docker.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@ on:
tags:
- "v*"

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

jobs:
build:
Expand Down Expand Up @@ -38,9 +35,9 @@ jobs:
# Step 5: Rename directories with the extracted version number
- name: Rename SDK Directories with Version
run: |
cp -r build/inspireface-linux-armv7-armhf build/inspireface-linux-armv7-armhf-${{ env.VERSION }}
cp -r build/inspireface-linux-armv7-rv1109rv1126-armhf build/inspireface-linux-armv7-rv1109rv1126-armhf-${{ env.VERSION }}
cp -r build/inspireface-linux-x86-ubuntu18 build/inspireface-linux-x86-ubuntu18-${{ env.VERSION }}
mv build/inspireface-linux-armv7-armhf build/inspireface-linux-armv7-armhf-${{ env.VERSION }}
mv build/inspireface-linux-armv7-rv1109rv1126-armhf build/inspireface-linux-armv7-rv1109rv1126-armhf-${{ env.VERSION }}
mv build/inspireface-linux-x86-ubuntu18 build/inspireface-linux-x86-ubuntu18-${{ env.VERSION }}
# Step 6: Zip each SDK directory with the version number
- name: Zip SDK Files
Expand All @@ -60,6 +57,9 @@ jobs:
inspireface-linux-x86-ubuntu18-${{ env.VERSION }}.zip
release:
# Set the global GitHub token environment variable
env:
GITHUB_TOKEN: ${{ secrets.MY_GITHUB_TOKEN }}
name: Release SDKs to GitHub
needs: build
runs-on: ubuntu-latest
Expand Down
17 changes: 13 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ bash command/build.sh
```
After compilation, you can find the local file in the build directory, which contains the compilation results. The install directory structure is as follows:
```bash
install
└── InspireFace
inspireface-linux
├── include
│ ├── herror.h
│ └── inspireface.h
Expand All @@ -77,7 +76,7 @@ export ARM_CROSS_COMPILE_TOOLCHAIN=YOUR_DIR/gcc-arm-8.3-2019.03-x86_64-arm-linux
# Execute the cross-compilation script for RV1109/RV1126
bash command/build_cross_rv1109rv1126_armhf.sh
```
After the compilation is complete, you can find the compiled results in the **build/rv1109rv1126_armhf/install** directory.
After the compilation is complete, you can find the compiled results in the **build/inspireface-linux-armv7-rv1109rv1126-armhf** directory.
### 2.3. Supported Platforms and Architectures
We have completed the adaptation and testing of the software across various operating systems and CPU architectures. This includes compatibility verification for platforms such as Linux, macOS, iOS, and Android, as well as testing for specific hardware support to ensure stable operation in diverse environments.

Expand All @@ -102,7 +101,17 @@ We have completed the adaptation and testing of the software across various oper

We offer a method for rapid multi-platform compilation using Docker, provided that Docker is installed beforehand, and the appropriate commands are executed:
```Bash
#
# Build x86 Ubuntu18.04
docker-compose up build-ubuntu18

# Build armv7 cross-compile
build-cross-armv7-armhf

# Build armv7 with support RV1109RV1126 device NPU cross-complie
docker-compose up build-cross-rv1109rv1126-armhf

# Build all
docker-compose up
```

## 3. Example
Expand Down

0 comments on commit 40f3a13

Please sign in to comment.