add testcase for FTV2a #160
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: arm64 build | |
on: | |
push: | |
paths-ignore: | |
- 'README.md' | |
- 'CHANGELOG.md' | |
pull_request: | |
paths-ignore: | |
- 'README.md' | |
- 'CHANGELOG.md' | |
workflow_dispatch: | |
inputs: | |
version: | |
description: dummy | |
default: dummy | |
jobs: | |
build-arm64: | |
name: arm64 Build | |
runs-on: ubuntu-22.04 | |
if: | | |
true | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/checkout@v4 | |
- name: install deps | |
run: | | |
sudo apt-get update && \ | |
sudo DEBIAN_FRONTEND=noninteractive \ | |
apt-get install -y --no-install-recommends \ | |
ca-certificates qemu-system-aarch64 qemu-user-static \ | |
qemu-utils binfmt-support libc6-arm64-cross libatomic1-arm64-cross | |
- name: enable arm64 emu | |
run: | | |
sudo modprobe binfmt_misc || echo "NO ERR" | |
sudo update-binfmts --enable || echo "NO ERR" | |
- name: check binfmt_misc | |
run: | | |
lsmod | grep binfmt_misc || echo "NO ERR" | |
ls -al /proc/sys/fs/binfmt_misc/ || echo "NO ERR" | |
- name: make script dockcross/linux-arm64 | |
run: docker run --rm dockcross/linux-arm64 > ./dockcross-linux-arm64; chmod +x ./dockcross-linux-arm64 | |
- name: test | |
run: ./dockcross-linux-arm64 bash -c 'ls -al;id;pwd;hostname;uname -a' | |
- name: build deps | |
run: | | |
./dockcross-linux-arm64 bash -c './.circleci/build-cross-generic-linux' | |
- name: find output | |
run: | | |
find . -name libtoxcore.a | |
find . -name 'libtoxcore.so*' || echo "NO ERR" | |
find . -name friend_connection_test | |
file ./lib/libtoxcore.a || echo "NO ERR" | |
file ./build/friend_connection_test || echo "NO ERR" | |