Skip to content

Commit a22a376

Browse files
committed
Meson: test void linux on CI and add devcontainer for it
1 parent 94baf41 commit a22a376

File tree

4 files changed

+37
-8
lines changed

4 files changed

+37
-8
lines changed

.devcontainer/onCreate-meson.sh

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,12 @@ eval $(build/bin/sage-print-system-package-command $SYSTEM --yes --ignore-missin
1919
uv venv
2020
uv pip install \
2121
meson-python \
22-
"cypari2 >=2.2.1" \
2322
"cysignals >=1.11.2, != 1.12.0" \
24-
"cython >=3.0, != 3.0.3" \
23+
"cython >=3.0, != 3.0.3, != 3.1.0" \
2524
"gmpy2 ~=2.1.b999" \
2625
memory_allocator \
2726
"numpy >=1.25" \
28-
jinja2
29-
uv sync --frozen --inexact --no-build-isolation-package=sagemath
27+
jinja2 \
28+
setuptools
29+
uv pip install "cypari2 >=2.2.1" --no-build-isolation
30+
uv sync --frozen --inexact --no-build-isolation --config-settings=builddir=build/build-$SYSTEM
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
FROM ghcr.io/void-linux/void-glibc-full
2+
RUN xbps-install -Suy bash git python
3+
RUN chsh -s /usr/bin/bash
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
// See https://aka.ms/devcontainer.json for format details.
2+
{
3+
"name": "void",
4+
// Doesn't include 'bash', so we use a custom dockerfile
5+
// "image": "ghcr.io/void-linux/void-glibc-full",
6+
"dockerFile": "Dockerfile",
7+
"onCreateCommand": ".devcontainer/onCreate-meson.sh || true",
8+
"features": {
9+
// Git feature is not compatible with Void Linux, so we install it manually in the Dockerfile
10+
// https://github.com/devcontainers/features/issues/824
11+
//"ghcr.io/devcontainers/features/git": {},
12+
//"ghcr.io/devcontainers/features/python:1": {},
13+
"../uv": {
14+
"version": "latest"
15+
}
16+
},
17+
"customizations": {
18+
"vscode": {
19+
"extensions": [
20+
"ms-python.python"
21+
]
22+
}
23+
}
24+
}

.github/workflows/ci.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ jobs:
2121
container:
2222
- fedora:41
2323
- fedora:42
24+
- ghcr.io/void-linux/void-glibc-full
2425
container:
2526
image: ${{ matrix.container }}
2627

@@ -63,15 +64,15 @@ jobs:
6364
# Install build dependencies manually as workaround for https://github.com/astral-sh/uv/issues/1516
6465
uv pip install \
6566
meson-python \
66-
"cypari2 >=2.2.1" \
6767
"cysignals >=1.11.2, != 1.12.0" \
68-
"cython >=3.0, != 3.0.3" \
68+
"cython >=3.0, != 3.0.3, != 3.1.0" \
6969
"gmpy2 ~=2.1.b999" \
7070
memory_allocator \
7171
"numpy >=1.25" \
72+
setuptools \
7273
jinja2
73-
74-
uv sync --frozen --inexact --no-build-isolation-package=sagemath
74+
uv pip install --no-build-isolation "cypari2 >=2.2.1"
75+
uv sync --frozen --no-build-isolation -v
7576
7677
- name: Test
7778
run: |

0 commit comments

Comments
 (0)