ci: switching to qemu emulation

This commit is contained in:
Nicolas 2025-11-03 16:47:05 +01:00
parent f64615d413
commit 44d5721d9b
1 changed files with 14 additions and 23 deletions

View File

@ -118,36 +118,27 @@ jobs:
build-arm64:
needs: [build_stencils]
runs-on: ubuntu-22.04-arm64
strategy:
matrix:
python-version: ["3.10"]
runs-on: ubuntu-latest
steps:
- name: Check out code
uses: actions/checkout@v4
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: stencil-object-files
path: src/copapy/obj
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- name: Set up QEMU for ARM64
uses: docker/setup-qemu-action@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Python dependencies
run: python -m pip install -e .[dev]
- name: Compile coparun
platforms: linux/arm64
- name: Use ARM64 container
run: |
mkdir -p bin
gcc -O3 -DENABLE_BASIC_LOGGING -o bin/coparun src/coparun/runmem.c src/coparun/coparun.c src/coparun/mem_man.c
- name: Run tests with pytest
run: pytest
docker run --rm -v $PWD:/app -w /app --platform linux/arm64 ubuntu:22.04 \
bash -lc "apt-get update && \
apt-get install -y build-essential python3 python3-pip python3-dev && \
python3 -m pip install --upgrade pip setuptools wheel && \
python3 -m pip install .[dev] && \
mkdir -p bin && \
gcc -O3 -DENABLE_BASIC_LOGGING -o bin/coparun src/coparun/runmem.c src/coparun/coparun.c src/coparun/mem_man.c && \
python3 -m pytest"
build-windows:
needs: [build_stencils]