Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test on more platforms #50

Merged
merged 5 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ jobs:
strategy:
fail-fast: false
matrix:
images: [ubuntu22.04] # TODO: Add more targets here
images: [ubuntu24.04, ubuntu22.04, ubuntu20.04, arch]

runs-on: ubuntu-latest
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
Expand Down
26 changes: 26 additions & 0 deletions Dockerfile.arch
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
FROM archlinux:latest

# Install curl gdb python3 python3-pip python3-venv tmux git vim
RUN pacman -Syu --noconfirm && \
pacman -S --noconfirm \
python \
python-pip \
python-virtualenv \
tmux \
git \
gdb \
curl \
wget \
vim && \
curl -sSL https://install.python-poetry.org | python3 - && \
git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf && \
~/.fzf/install --all

ENV PATH="/root/.fzf/bin:/root/.local/bin:${PATH}"

COPY . /root/.local/share/GEP

WORKDIR /root/.local/share/GEP

RUN ./install.sh -d && \
poetry install --with dev
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,14 @@ services:
cap_add:
- SYS_PTRACE

ubuntu24.04:
<<: *base-spec
build:
context: .
dockerfile: Dockerfile
args:
image: ubuntu:24.04

ubuntu22.04:
<<: *base-spec
build:
Expand All @@ -22,3 +30,9 @@ services:
dockerfile: Dockerfile
args:
image: ubuntu:20.04

arch:
<<: *base-spec
build:
context: .
dockerfile: Dockerfile.arch
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ def start(self, gdb_args: list[str] | None = None, histories: list[str] = None)

cmd = [
"tmux",
"new-session",
"-f",
os.devnull,
"new-session",
"-d",
"-P",
"-F",
Expand Down