Skip to content

Commit

Permalink
Change to linux arm64
Browse files Browse the repository at this point in the history
  • Loading branch information
serivesmejia authored Oct 19, 2024
1 parent 5e5b86a commit fb1adb4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build_natives.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ jobs:
with:
name: native-linux-amd64
path: ${{github.workspace}}/*.so
build-linux-arm:
build-linux-arm64:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -40,16 +40,16 @@ jobs:
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cmake gcc g++ gfortran

- name: Install cross-compilation tools for ARM
run: sudo apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf
- name: Install cross-compilation tools for ARM64
run: sudo apt-get install -y gcc-aarch64-linux-gnu g++-aarch64-linux-gnu

- name: Configure CMake for cross-compilation
run: |
cmake \
-DCMAKE_SYSTEM_NAME=Linux \
-DCMAKE_SYSTEM_PROCESSOR=armhf \
-DCMAKE_C_COMPILER=arm-linux-gnueabihf-gcc \
-DCMAKE_CXX_COMPILER=arm-linux-gnueabihf-g++ .
-DCMAKE_SYSTEM_PROCESSOR=aarch64 \
-DCMAKE_C_COMPILER=aarch64-linux-gnu-gcc \
-DCMAKE_CXX_COMPILER=aarch64-linux-gnu-g++ .
- name: Build
run: cmake --build ${{github.workspace}} --config ${{env.BUILD_TYPE}}
Expand Down

0 comments on commit fb1adb4

Please sign in to comment.