Skip to content

TODO/WIP/pending 👷 Migrate to GitHub Actions #26

TODO/WIP/pending 👷 Migrate to GitHub Actions

TODO/WIP/pending 👷 Migrate to GitHub Actions #26

Workflow file for this run

name: CI
on:
push:
pull_request:
jobs:
linux-build:
runs-on: ubuntu-latest
name: Linux Build
steps:
- uses: actions/checkout@v4
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Build Docker image
run: |
docker build --tag=zbarcam-linux \
--file=dockerfiles/Dockerfile-linux \
--build-arg CI .
- name: Setup virtual frame buffer
run: |
sudo apt-get update
sudo apt-get install -y xvfb
Xvfb :99 -screen 0 1024x768x24 > /dev/null 2>&1 &
echo "DISPLAY=:99" >> $GITHUB_ENV
- name: Run tests
run: |
docker run --env-file dockerfiles/env.list \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=$DISPLAY \
zbarcam-linux make test
timeout-minutes: 30
android-build:
runs-on: ubuntu-latest
name: Android Build
steps:
- uses: actions/checkout@v4
- name: Set up Docker
uses: docker/setup-buildx-action@v3
- name: Build Docker image
run: |
docker build --tag=zbarcam-android \
--file=dockerfiles/Dockerfile-android \
--build-arg CI .
- name: Build Android app
run: |
docker run --env-file dockerfiles/env.list \
zbarcam-android buildozer android debug
timeout-minutes: 30