Skip to content

defined(__NetBSD__) #34

defined(__NetBSD__)

defined(__NetBSD__) #34

Workflow file for this run

name: mips 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-mips:
name: mips Build
runs-on: ubuntu-22.04
if: |
true
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- name: install deps
run: |
sudo apt-get update && \
sudo DEBIAN_FRONTEND=noninteractive \
apt-get install -y --no-install-recommends \
ca-certificates qemu-system-mips qemu-user-static \
qemu-utils binfmt-support libc6-mips-cross libatomic1-mips-cross
- name: enable mips 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-mips
run: docker run --rm dockcross/linux-mips > ./dockcross-linux-mips; chmod +x ./dockcross-linux-mips
- name: test
run: ./dockcross-linux-mips bash -c 'ls -al;id;pwd;hostname;uname -a'
- name: build deps
run: |
./dockcross-linux-mips 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"