Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
86maid authored Jul 9, 2024
1 parent 2127a2a commit 2be02fb
Showing 1 changed file with 0 additions and 28 deletions.
28 changes: 0 additions & 28 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,22 +165,8 @@ jobs:
- name: Install AArch64 Linux toolchain and dependencies
run: sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu cmake

- name: Set up CMake for cross-compilation
run: |
echo "SET(CMAKE_SYSTEM_NAME Linux)" >> ./toolchain.cmake
echo "SET(CMAKE_SYSTEM_PROCESSOR aarch64)" >> ./toolchain.cmake
echo "SET(CMAKE_C_COMPILER aarch64-linux-gnu-gcc)" >> ./toolchain.cmake
echo "SET(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++)" >> ./toolchain.cmake
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> ./toolchain.cmake
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)" >> ./toolchain.cmake
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> ./toolchain.cmake
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)" >> ./toolchain.cmake
- name: Build project for AArch64 Linux
run: |
export RUSTFLAGS="-L /usr/aarch64-linux-gnu/lib"
cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=./toolchain.cmake
cmake --build build --target all
cargo build --release --target aarch64-unknown-linux-gnu
- name: Copy model folder for AArch64 Linux
Expand Down Expand Up @@ -212,22 +198,8 @@ jobs:
- name: Install AArch64 Linux toolchain and dependencies
run: sudo apt-get update && sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu cmake

- name: Set up CMake for cross-compilation
run: |
echo "SET(CMAKE_SYSTEM_NAME Linux)" >> ./toolchain.cmake
echo "SET(CMAKE_SYSTEM_PROCESSOR aarch64)" >> ./toolchain.cmake
echo "SET(CMAKE_C_COMPILER aarch64-linux-gnu-gcc)" >> ./toolchain.cmake
echo "SET(CMAKE_CXX_COMPILER aarch64-linux-gnu-g++)" >> ./toolchain.cmake
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER)" >> ./toolchain.cmake
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY)" >> ./toolchain.cmake
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY)" >> ./toolchain.cmake
echo "SET(CMAKE_FIND_ROOT_PATH_MODE_PACKAGE ONLY)" >> ./toolchain.cmake
- name: Build project for AArch64 Linux
run: |
export RUSTFLAGS="-L /usr/aarch64-linux-gnu/lib"
cmake -B build -S . -DCMAKE_TOOLCHAIN_FILE=./toolchain.cmake
cmake --build build --target all
cargo build --release --target aarch64-unknown-linux-gnu --features "inline-model"
- name: Archive artifacts for AArch64 Linux with inline-model
Expand Down

0 comments on commit 2be02fb

Please sign in to comment.