forked from HDFGroup/hdf5
-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (31 loc) · 1.1 KB
/
linux-aarch64.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: linux CMake aarch64-gcc
on:
workflow_dispatch:
push:
branches: [ develop ]
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Install gcc-arch64
run: |
sudo apt-get update
sudo apt-get install -y gcc-aarch64-linux-gnu
sudo apt-get install binfmt-support qemu qemu-user-static
- name: Get Sources
uses: actions/checkout@v4
- name: Build and Test
run: |
echo $PWD
wget https://musl.cc/aarch64-linux-musl-cross.tgz
tar -xvzf aarch64-linux-musl-cross.tgz
./aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc --version
ls ./aarch64-linux-musl-cross/bin/
sudo cp -r ./aarch64-linux-musl-cross/aarch64-linux-musl/lib/* /lib/
ls /lib/
ls
mkdir build
cd build
cmake -DCMAKE_C_COMPILER=/home/runner/work/hdf5/hdf5/aarch64-linux-musl-cross/bin/aarch64-linux-musl-gcc -DCMAKE_AR=/home/runner/work/hdf5/hdf5/aarch64-linux-musl-cross/bin/aarch64-linux-musl-ar -DCMAKE_SYSTEM_PROCESSOR=arm -DHDF5_ENABLE_SZIP_SUPPORT:BOOL=OFF ..
make
make test