From 1e522fb3f01ff72f4221d6c237c5a86dcbeec72c Mon Sep 17 00:00:00 2001 From: Nicolas Date: Mon, 3 Nov 2025 16:47:05 +0100 Subject: [PATCH] ci: switching to qemu emulation --- .github/workflows/ci.yml | 37 ++++++++++++++----------------------- 1 file changed, 14 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 83ad5f6..6a6d1c6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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]