3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-13 20:38:43 +00:00
z3/.github/workflows/cross-build.yml
2022-03-16 07:32:05 -07:00

31 lines
678 B
YAML

name: RISC V and PowerPC 64
on:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
container: ubuntu:jammy
strategy:
fail-fast: false
matrix:
arch: [ aarch64, riscv64, powerpc64 ]
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Install cross build tools
run: apt update && apt install -y ninja-build cmake python3 g++-11-${{ matrix.arch }}-linux-gnu
env:
DEBIAN_FRONTEND: noninteractive
- name: Configure CMake and build
run: |
mkdir build && cd build
cmake -DCMAKE_CXX_COMPILER=${{ matrix.arch }}-linux-gnu-g++-11 ../
make -j$(nproc)