Optimized Dockerfile and github workflow

This commit is contained in:
2025-07-16 09:38:19 +02:00
parent 241c5c6da8
commit 2d276cfa5e
9 changed files with 257 additions and 29 deletions

31
.github/workflows/test-container.yml vendored Normal file
View File

@@ -0,0 +1,31 @@
name: Build & Test Container
on:
push:
branches:
- master
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Build Docker image
run: |
docker build -t cymais:latest .
- name: Clean build artifacts
run: |
docker run --rm cymais:latest cymais make clean
- name: Generate project outputs
run: |
docker run --rm cymais:latest cymais make build
- name: Run tests
run: |
docker run --rm cymais:latest cymais make test

View File

@@ -1,22 +0,0 @@
name: Build & Test on Arch Linux
on:
push:
branches: [ master ]
pull_request:
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build & Test in Arch Linux Container
uses: addnab/docker-run-action@v3
with:
image: archlinux:latest
options: -v ${{ github.workspace }}:/workspace -w /workspace
run: |
pacman -Sy --noconfirm base-devel git python python-pip docker make
make build
make test