From 8f38a39b7d8d8337d4f5e8214d5aa6692d6f68ea Mon Sep 17 00:00:00 2001 From: Janne Schyffert <89573122+Karlkorv@users.noreply.github.com> Date: Tue, 2 Jul 2024 11:54:18 +0200 Subject: [PATCH] Update docker-image.yml --- .github/workflows/docker-image.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/docker-image.yml b/.github/workflows/docker-image.yml index 904425f..d73ed03 100644 --- a/.github/workflows/docker-image.yml +++ b/.github/workflows/docker-image.yml @@ -1,4 +1,4 @@ -name: Docker Image CI +name: Docker Image CI and CMake Checks on: pull_request: @@ -6,7 +6,7 @@ on: jobs: - build: + build-image: runs-on: ubuntu-latest @@ -14,3 +14,8 @@ jobs: - uses: actions/checkout@v4 - name: Build the Docker image run: docker build . --file Dockerfile --tag my-image-name:$(date +%s) + - name: Run the docker image + run: docker run -v $(pwd):/usr/src/app -e DISPLAY=$DISPLAY -it --network=host -v /tmp/.X11-unix:/tmp/.X11-unix --user=$(id -u $USER) beamformer bash + - name: Build the beamformer using CMake + run: cmake -S . -B build && cmake --build build +