Skip to content

add aarch64 build process #17

add aarch64 build process

add aarch64 build process #17

Workflow file for this run

name: Build linux
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
env:
CARGO_TERM_COLOR: always
jobs:
build:
runs-on: ubuntu-22.04
steps:
- name: Set up QEMU
uses: docker/setup-qemu-action@v3
- uses: actions/checkout@v3
- name: Install libelf and gdb
run: sudo apt-get install -y libelf-dev libelf1 gdb
- name: Set up hugepages
run: sudo sh -c "echo 200 > /proc/sys/vm/nr_hugepages"
- name: Build
run: cargo build
- name: Run tests
run: cargo test
- name: Run integration tests x86_64
run: sudo -E /home/${USER}/.cargo/bin/cargo test --no-fail-fast -- --include-ignored
- name: Run integration tests aarch64
run: docker run -v $(pwd):/data --platform=linux/arm64/v8 arm64v8/ubuntu:22.04 /data/scripts/build-and-test.sh