Skip to content

Commit

Permalink
Merge pull request #98 from acoustic-warfare/Karlkorv-patch-1
Browse files Browse the repository at this point in the history
Docker workflow fix
  • Loading branch information
Karlkorv authored Jul 31, 2024
2 parents 6715772 + 478311a commit 72f15af
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions .github/workflows/docker-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,22 @@ name: Docker Image CI and CMake Checks
on:
pull_request:
branches: [ "main" ]


jobs:
build-image:
runs-on: ubuntu-latest
container:
image: karlkorv/beamformer:latest
options: --user root
steps:
- uses: actions/checkout@v4

- name: Pull the Docker image
run: docker image pull karlkorv/beamformer:latest
- name: Ensure dependencies are installed
run: |
apt-get update
apt-get install -y cmake
- name: Run cmake in the Docker image
run: docker run --rm -v ${{ github.workspace }}:/usr/src/app -w /usr/src/app karlkorv/beamformer:latest /bin/bash -c "cmake -S . -B /build && cmake --build /build"
run: |
cmake -S . -B /build
cmake --build /build

0 comments on commit 72f15af

Please sign in to comment.