-
Notifications
You must be signed in to change notification settings - Fork 32
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
TODO/WIP/pending 👷 Migrate to GitHub Actions
Also bump a few versions to get the CI to pass. In future iterations we could bump more dependencies. TODO: - explain why we removed dependencies from the Makefile
- Loading branch information
1 parent
8c75846
commit 6e4df06
Showing
4 changed files
with
66 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Kivy==2.0.0rc2 | ||
Kivy==2.3.1 | ||
Kivy-Garden==0.1.4 | ||
numpy==1.18.4 | ||
opencv-python==4.2.0.34 | ||
numpy==1.26.4 | ||
opencv-python==4.8.1.78 | ||
Pillow==8.2.0 | ||
pyzbar==0.1.8 | ||
xcamera==2019.928 |