File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change 2424 target : aarch64-unknown-linux-gnu
2525 artifact_name : resonix-node-${{ github.ref_name }}-linux-aarch64.tar.gz
2626 archive_ext : tar.gz
27+ - os : ubuntu-latest
28+ target : armv7-unknown-linux-gnueabihf
29+ artifact_name : resonix-node-${{ github.ref_name }}-linux-armv7.tar.gz
30+ archive_ext : tar.gz
2731 # Windows
2832 - os : windows-latest
2933 target : x86_64-pc-windows-msvc
6165 sudo apt-get install -y gcc-aarch64-linux-gnu
6266 shell : bash
6367
68+ - name : Install Linux armv7 cross toolchain
69+ if : ${{ matrix.target == 'armv7-unknown-linux-gnueabihf' }}
70+ run : |
71+ sudo apt-get update
72+ sudo apt-get install -y gcc-arm-linux-gnueabihf
73+ shell : bash
74+
6475 - name : Build
6576 run : |
6677 echo "Building target ${{ matrix.target }}"
6980 export AR_aarch64_unknown_linux_gnu=aarch64-linux-gnu-ar
7081 export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=aarch64-linux-gnu-gcc
7182 fi
83+ if [[ "${{ matrix.target }}" == "armv7-unknown-linux-gnueabihf" ]]; then
84+ export CC_armv7_unknown_linux_gnueabihf=arm-linux-gnueabihf-gcc
85+ export AR_armv7_unknown_linux_gnueabihf=arm-linux-gnueabihf-ar
86+ export CARGO_TARGET_ARMV7_UNKNOWN_LINUX_GNUEABIHF_LINKER=arm-linux-gnueabihf-gcc
87+ fi
7288 cargo build --release --target ${{ matrix.target }}
7389 shell : bash
7490
You can’t perform that action at this time.
0 commit comments