Skip to content

WIP: 007

WIP: 007 #94

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"