mirror of https://github.com/Nonannet/copapy.git
ci: switching to qemu emulation
This commit is contained in:
parent
0cddb90cca
commit
1e522fb3f0
|
|
@ -118,36 +118,27 @@ jobs:
|
||||||
|
|
||||||
build-arm64:
|
build-arm64:
|
||||||
needs: [build_stencils]
|
needs: [build_stencils]
|
||||||
runs-on: ubuntu-22.04-arm64
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
strategy:
|
|
||||||
matrix:
|
|
||||||
python-version: ["3.10"]
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check out code
|
- uses: actions/checkout@v4
|
||||||
uses: actions/checkout@v4
|
|
||||||
|
|
||||||
- uses: actions/download-artifact@v4
|
- uses: actions/download-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: stencil-object-files
|
name: stencil-object-files
|
||||||
path: src/copapy/obj
|
path: src/copapy/obj
|
||||||
|
- name: Set up QEMU for ARM64
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
uses: docker/setup-qemu-action@v3
|
||||||
uses: actions/setup-python@v5
|
|
||||||
with:
|
with:
|
||||||
python-version: ${{ matrix.python-version }}
|
platforms: linux/arm64
|
||||||
|
- name: Use ARM64 container
|
||||||
- name: Install Python dependencies
|
|
||||||
run: python -m pip install -e .[dev]
|
|
||||||
|
|
||||||
- name: Compile coparun
|
|
||||||
run: |
|
run: |
|
||||||
mkdir -p bin
|
docker run --rm -v $PWD:/app -w /app --platform linux/arm64 ubuntu:22.04 \
|
||||||
gcc -O3 -DENABLE_BASIC_LOGGING -o bin/coparun src/coparun/runmem.c src/coparun/coparun.c src/coparun/mem_man.c
|
bash -lc "apt-get update && \
|
||||||
|
apt-get install -y build-essential python3 python3-pip python3-dev && \
|
||||||
- name: Run tests with pytest
|
python3 -m pip install --upgrade pip setuptools wheel && \
|
||||||
run: pytest
|
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:
|
build-windows:
|
||||||
needs: [build_stencils]
|
needs: [build_stencils]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue